2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cd829959
PM
12011-11-04 Phil Muldoon <pmuldoon@redhat.com>
2
3 PR Python/13363
4
5 * python/py-type.c (typy_lookup_type): Do not return a type in
6 an exception handler.
7
080ad648
JK
82011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9 Eli Zaretskii <eliz@gnu.org>
10
11 * linux-nat.c (_initialize_linux_nat): Improve help
12 for `info proc stat', `info proc status', `info proc cwd',
13 `info proc cmdline' and `info proc exe'.
14
3065dfb6
SS
152011-11-02 Stan Shebs <stan@codesourcery.com>
16
17 String collection for tracepoints.
18 * NEWS: Mention string collection.
19 * common/ax.def (tracenz): New bytecode.
20 * ax-gdb.h (trace_string_kludge): Declare.
21 * ax-gdb.c: Include valprint.h and c-lang.h.
22 (trace_string_kludge): New global.
23 (gen_traced_pop): Add string case.
24 (agent_command): Add string case.
25 * tracepoint.h (decode_agent_options): Declare.
26 * tracepoint.c: Include cli-utils.h.
27 (decode_agent_options): New function.
28 (validate_actionline): Call it.
29 (encode_actions_1): Ditto.
30 * target.h (struct target_ops): New method to_supports_string_tracing.
31 (target_supports_string_tracing): New macro.
32 * target.c (update_current_target): Add to_supports_string_tracing.
33 * remote.c (struct remote_state): New field string_tracing.
34 (remote_string_tracing_feature): New function.
35 (remote_protocol_features): New feature tracenz.
36 (remote_supports_string_tracing): New function.
37 (init_remote_ops): Set to_supports_string_tracing.
38
f179e162
JK
392011-11-02 Pedro Alves <pedro@codesourcery.com>
40 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 * linux-nat.c: Include cli/cli-utils.h.
43 (enum info_proc_what): New.
44 (linux_nat_info_proc_cmd): Rename to ...
45 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
46 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
47 status_f and stat_f from WHAT. Throw error on extra parameters.
48 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
49 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
50 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
51 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
52 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
53 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
54 `info proc cmdline', `info proc exe' and `info proc all' as real
55 subcommands of `info proc'.
56
7b35ec7f 572011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
58
59 * Makefile.in: (SFILES): Add skip.c.
60 (HFILES_NO_SRCDIR): Add skip.h.
61 (COMMON_OBS): Add skip.o.
62 * skip.h, skip.c: New.
63 * breakpoint.h (set_default_breakpoint): Remove.
64 (get_sal_arch): Declare.
65 * breakpoint.c: Remove default_breakpoint_valid,
66 default_breakpoint_address, default_breakpoint_symtab,
67 default_breakpoint_line, default_breakpoint_pspace variables.
68 (get_sal_arch): Make public.
69 (set_default_breakpoint): Remove.
70 (parse_breakpoint_sals, create_breakpoint, clear_command,
71 decode_line_spec_1): Remove uses of default_breakpoint variables;
72 replaced with function calls into stack.c.
73 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
74 * cli/cli-cmds.c: Add skiplist.
75 (init_cmd_lists): Initialize skiplist.
76 (init_cli_cmds): Fix comment (classes of commands appear in
77 alphabetical order).
78 * infrun.c (handle_inferior_event): Add check that we don't step into
79 a function whose pc is marked for skip.
80 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
81 last_displayed_addr, last_displayed_symtab, last_displayed_line
82 variables.
83 (set_last_displayed_sal): New static function.
84 (print_frame_info): Switch call to set_default_breakpoint to call to
85 set_last_displayed_sal.
86 (clear_last_displayed_sal, last_displayed_sal_is_valid,
87 get_last_displayed_pspace, get_last_displayed_addr,
88 get_last_displayed_symtab, get_last_displayed_line,
89 get_last_displayed_sal): New public functions.
90 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
91 get_last_displayed_pspace, get_last_displayed_addr,
92 get_last_displayed_symtab, get_last_displayed_line,
93 get_last_displayed_sal): Declare.
94
b60e1588
JL
952011-11-01 Justin Lebar <justin.lebar@gmail.com>
96
97 * MAINTAINERS (Write After Approval): Add myself to the list.
98
d31647d2
YQ
992011-10-29 Yao Qi <yao@codesourcery.com>
100
101 * infcmd.c (disconnect_command): Call disconnect_tracing.
102
b1d96efd
JK
1032011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 Code cleanup.
106 * symtab.c (skip_prologue_sal): Code reformatting.
107
4dfb2365
JK
1082011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 PR symtab/13208
111 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
112 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
113 SAI.
114
0e5bf2a8
PA
1152011-10-28 Pedro Alves <pedro@codesourcery.com>
116
117 * linux-nat.c (linux_nat_filter_event): Remove `options'
118 parameter, and dead code that used it. If we're handling a
119 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
120 in our lwp list, re-add it.
121 (check_zombie_leaders): New.
122 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
123 wait for children with WNOHANG, and always wait for all children.
124 Don't check for no resumed children upfront. Simplify wait loop.
125 Check for zombie thread group leaders after handling all wait
126 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
127 unwaited-for children left.
128 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
129 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
130 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
131 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
132
821296b7
SA
1332011-10-28 Sterling Augustine <saugustine@google.com>
134
135 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
136 * symtab.c (free_completion_list): New function.
137 (do_free_completion_list): Likewise.
138 (default_make_symbol_completion_list_break_on): New variable
139 back_to. Call make_cleanup and discard_cleanups.
140 (make_source_files_completion_list): Likewise.
141
03c3051a
PK
1422011-10-28 Paul Koning <paul_koning@dell.com>
143
144 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
145 * NEWS: Mention deep_items.
146
8e7ebaf5
PA
1472011-10-28 Alen Skondro <askondro@gmail.com>
148
149 * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already
150 defined.
151
e0c6ef61
MI
1522011-10-27 Meador Inge <meadori@codesourcery.com>
153
154 * MAINTAINERS (Write After Approval): Add myself to the list.
155
b56d6f31
JB
1562011-10-27 Joel Brobecker <brobecker@adacore.com>
157
158 * value.h (read_frame_register_value): Add declaration.
159 * findvar.c (read_frame_register_value): New function.
160 (value_from_register): Use read_frame_register_value
161 instead of get_frame_register_value + value_contents_copy
162 to get value contents.
163
d234ef5c
DE
1642011-10-27 Doug Evans <dje@google.com>
165
166 * cli/cli-cmds.c (source_script_with_search): Pass full path to
167 source_script_from_stream if it may have been found on the search path.
168 * python/py-auto-load.c (source_section_scripts): Pass full path to
169 source_python_script_for_objfile.
170 * python/python.c (source_python_script): Delete stream parameter.
171 All callers updated.
172 (source_python_script_for_objfile): Ditto.
173 * python/python-internal.h (source_python_script_for_objfile): Update.
174 * python/python.h (source_python_script): Update.
175
d849d44f
TT
1762011-10-27 Tom Tromey <tromey@redhat.com>
177
178 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
179 (ada_sals_for_line): Remove declarations.
180
2231f1fb
KP
1812011-10-27 Kevin Pouget <kevin.pouget@st.com>
182
183 Move unwind reasons to an external .def file
184 * frame.c (frame_stop_reason_string): Rewrite using
185 unwind_stop_reasons.def.
186 * frame.h (enum unwind_stop_reason): Likewise.
187 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
188 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
189 constants for bound-checking.
190 * unwind_stop_reasons.def: New file.
191 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
192 instead of a distinct value.
193
f77b9a5d
PM
1942011-10-27 Phil Muldoon <pmuldoon@redhat.com>
195
196 PR python/13331
197
198 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
199 (convert_values_to_python): Return on Python tuple allocation
200 failure. Return NULL on value conversion error.
201
76dce0be
PM
2022011-10-27 Phil Muldoon <pmuldoon@redhat.com>
203
204 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
205 (bppy_set_task): Ditto.
206 (bppy_delete_breakpoint): Ditto.
207 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
208 (gdbpy_lookup_global_symbol): Ditto.
209 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
210 * python/py-frame.c (frapy_is_valid): Ditto.
211 (frame_info_to_frame_object): Ditto.
212 * python/py-type.c (typy_lookup_type): Ditto.
213 (typy_getitem): Ditto.
214 (typy_has_key): Ditto.
215 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
216
f17b6955
JB
2172011-10-26 Joel Brobecker <brobecker@adacore.com>
218
219 * gdbarch.h: Regenerate.
220
86ba1042
JB
2212011-10-26 Meador Inge <meadori@codesourcery.com>
222
223 * gdbarch.sh (function_list): Use 'pstring' when printing
224 'gcore_bfd_target'.
225 * gdbarch.c: Regenerate.
226
c34fd852
UW
2272011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
228
229 * regcache.c (registers_changed_ptid): Invalidate thread architecture
230 and frame caches if PTID refers to all threads of a process.
231
931bb47f
UW
2322011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
233
234 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
235 to create_breakpoint.
236
88aed45e
UW
2372011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
238
239 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
240 (ppc_sysv_abi_push_dummy_call): Use it.
241 (do_ppc_sysv_return_value): Likewise.
242 (ppc64_sysv_abi_push_dummy_call): Likewise.
243 (ppc64_sysv_abi_return_value): Likewise.
244
3eaf3fa2
PK
2452011-10-26 Paul Koning <paul_koning@dell.com>
246
247 * python/lib/gdb/types.py (deepitems): New function.
248
913460fc
PK
2492011-10-25 Paul Koning <paul_koning@dell.com>
250
251 PR python/13327
252
253 * python/py-value.c (value_to_value_object): Remove fetching of
254 the value if it was lazy.
255 (valpy_get_is_lazy): New function.
256 (valpy_fetch_lazy): New function.
257
2b5b9d09
JB
2582011-10-24 Joel Brobecker <brobecker@adacore.com>
259
260 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
261 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
262
e21ffe51
PA
2632011-10-24 Pedro Alves <pedro@codesourcery.com>
264
265 * linux-nat.c (linux_handle_extended_wait): When handling a clone
266 event, in non-stop, if not stopping, make sure the new lwp has
267 last_resume_kind set to resume_continue. Assert that when we're
268 resuming the new lwp, its last_resume_kind is resume_continue.
269
7aee8dc2
PA
2702011-10-24 Pedro Alves <pedro@codesourcery.com>
271
272 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
273 already set when marking the event thread as not executing in
274 non-stop mode.
275
4b4e080e
PA
2762011-10-24 Pedro Alves <pedro@codesourcery.com>
277
278 * infrun.c (handle_inferior_event): Add debug output for
279 TARGET_WAITKIND_NO_HISTORY.
280
baacfb07
PM
2812011-10-24 Phil Muldoon <pmuldoon@redhat.com>
282
283 * NEWS: Move set/show extended-prompt to "New Options". Expand
284 description. Fix typos.
285
8432bc41
PM
2862011-10-24 Phil Muldoon <pmuldoon@redhat.com>
287
288 PR python/13310
289
290 * python/py-param.c (call_doc_function): Correctly deference on
291 function exit.
292
6cda5a20
JB
2932011-10-21 Joel Brobecker <brobecker@adacore.com>
294
295 * ada-tasks.c (print_ada_task_info): Fix computation of
296 number of tasks displayed in command output.
297
13294f7d
JK
2982011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
299 Ulrich Weigand <uweigand@de.ibm.com>
300
301 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
302 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
303 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
304 gdbarch_pc_regnum and frame_unwind_register_unsigned by
305 gdbarch_unwind_pc.
306
460c1c54
CC
3072011-10-20 Cary Coutant <ccoutant@google.com>
308
309 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
310 section to...
311 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
312 flag. Adjust all callers.
313 (process_psymtab_comp_unit): Remove adjustment for type section.
314
a10964d1
AR
3152011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
316
317 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
318 arguments by adding OBJFILE. Instead of getting objfile from
319 symbol's symtab, use new argument OBJFILE.
320 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
321 arguments by adding OBJFILE.
322 * gdb/dwarf2read.c (new_symbol_full): Change call to
323 cp_scan_for_anonymous_namespaces to match new signature.
324 * gdb/stabsread.c (define_symbol): Change call to
325 cp_scan_for_anonymous_namespaces to match new signature.
326
27ca1a5b
PM
3272011-10-20 Phil Muldoon <pmuldoon@redhat.com>
328
329 PR python/13308
330 PR python/13309
331
332 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
333 leak.
334 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
335 leak. Delete unused variables.
336
9df2fbc4
PM
3372011-10-20 Phil Muldoon <pmuldoon@redhat.com>
338
339 PR python/12656
340
341 * python/py-frame.c (frapy_read_var): Use const struct *block.
342 * python/py-type.c (typy_lookup_typename): Likewise.
343 (typy_lookup_type): Likewise.
344 (typy_legacy_template_argument): Likewise.
345 (typy_template_argument): Likewise.
346 (gdbpy_lookup_type): Likewise.
347 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
348 * python/py-block.c (blpy_block_object): Likewise.
349 (blpy_iter): Likewise.
350 (blpy_get_start): Likewise.
351 (blpy_get_end): Likewise.
352 (blpy_get_function): Likewise.
353 (blpy_get_superblock): Likewise.
354 (set_block): Likewise.
355 (block_to_block_object): Likewise.
356 (block_object_to_block): Likewise.
357 (blpy_is_valid): Likewise.
358 (blpy_get_global_block): New function.
359 (blpy_get_static_block): New function.
360 (blpy_is_global): New function.
361 (blpy_is_static): New function.
362 * blockframe.c (block_innermost_frame): Likewise.
363 * valops.c (value_of_variable): Likewise.
364 * frame.h: Update prototypes.
365 * python/python-internal.h: Likewise.
366 * value.h: Likewise.
367
4743b735
CC
3682011-10-19 Cary Coutant <ccoutant@google.com>
369
370 * dwarf2read.c (create_debug_types_hash_table): Fix size of
371 type_offset field.
372
6caca83c
CC
3732011-10-19 Cary Coutant <ccoutant@google.com>
374
375 * dwarf2read.c (peek_abbrev_code): New function.
376 (dw2_get_file_names): Check for dummy compilation units.
377 (create_debug_types_hash_table): Likewise.
378 (process_psymtab_comp_unit): Likewise.
379 (load_partial_comp_unit): Likewise.
380 (load_full_comp_unit): Likewise.
381
43136979
AR
3822011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
383
384 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
385 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
386 pt_phdr if PT_PHDR was found.
387
0a07729b
TT
3882011-10-17 Joost van der Sluis <joost@cnoc.nl>
389
390 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
391 type or "<unnamed type"> when there is no name assigned.
392 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
393 avoid a sigint when no name is assigned.
394
21ae7a4d
JK
3952011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 Revert:
398 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
399 * dwarf2expr.c (ctx_no_read_reg): New function.
400 * dwarf2expr.h (ctx_no_read_reg): New declaration.
401 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
402 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
403 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
404
32d1c362
DE
4052011-10-16 Doug Evans <dje@google.com>
406
407 * NEWS: Document python gdb.printing.register_pretty_printer's new
408 `replace' parameter.
409
da096638
KS
4102011-10-14 Keith Seitz <keiths@redhat.com>
411
412 PR c++/13225
413 * eval.c (evaluate_subexp_standard): Do not construct
414 an array of types; pass the value array directly to
415 find_overload_match.
416 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
417 (rank_function): Take an array of values instead of types.
418 (rank_one_type): Add struct value * parameter.
419 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
420 (rank_function): For each argument, pass the argument's
421 value to rank_one_type.
422 (rank_one_type): Add VALUE parameter.
423 If the parameter type is a pointer and the argument type
424 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
425 VALUE is zero.
426 Update all calls to rank_one_type, passing NULL for new
427 VALUE parameter.
428 * valarith.c (value_user_defined_cpp_op): Do not construct
429 an array of types; pass the value array directly to
430 find_overload_match.
431 * valops.c (find_overload_method_list): Take an array of
432 values instead of types.
433 Save the type of OBJP for later use.
434 Update calls to find_oload_champ, and find_oload_champ_namespace.
435 (find_oload_champ_namespace): Take an array of values instead
436 of types.
437 (find_oload_champ_namespace_loop): Likewise.
438 (find_oload_champ): Likewise.
439 (classify_oload_match): Inspect all arguments
440 until INCOMPATIBLE is found. Return the worst badness found
441 otherwise.
442 (compare_parameters): Update call to rank_one_type.
443 * value.h (find_overload_match): Take an array of values instead
444 of types.
445
3957565a
JK
4462011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 Drop lazy lm_info reading.
449 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
450 l_addr_inferior, l_ld, l_next, l_prev and l_name.
451 (lm_info_read): New function.
452 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
453 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
454 lm_dynamic_from_link_map.
455 (lm_next, lm_prev, lm_name): Remove.
456 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
457 initialization incl. read_memory. No longer use lm_name.
458 (svr4_free_so): Drop lm_info->lm freeing.
459 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
460 explicit lm_addr and lm initialization.
461 (svr4_read_so_list): Use lm_info_read, drop the initailization of
462 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
463 lm_name.
464
cb08cc53
JK
4652011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Paul Pluzhnikov <ppluzhnikov@google.com>
467
468 * defs.h (struct so_list): New forward declaration.
469 (make_cleanup_free_so): New declaration.
470 * solib-svr4.c (ignore_first_link_map_entry): Remove.
471 (svr4_free_so): Move the function here from downwards. Handle NULL
472 so->lm_info.
473 (svr4_free_library_list): New.
474 (svr4_read_so_list): New, moved here code from svr4_current_sos.
475 Use more cleanups. Use new parameter ignore_first instead of
476 ignore_first_link_map_entry.
477 (svr4_current_sos): New variable ignore_first, initialize it. New
478 variable back_to, use it for svr4_free_library_list protection.
479 (svr4_free_so): Remove - move upwards.
480 * utils.c: Include solist.h.
481 (do_free_so, make_cleanup_free_so): New functions.
482
22c05d8a
JK
4832011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
484
485 Fix internal error regression.
486 * value.c (value_primitive_field): Handle value_optimized_out. Move
487 packed bitfields comment.
488
d930d06e
TT
4892011-10-13 Tom Tromey <tromey@redhat.com>
490
491 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
492 always released.
493
2ff6b080
TT
4942011-10-13 Tom Tromey <tromey@redhat.com>
495
496 * python/py-type.c (typy_has_key): Make 'field' const.
497
d6c5869f
LM
4982011-10-13 Luis Machado <lgustavo@codesourcery.com>
499
500 * remote.c (remote_save_trace_data): Invert comparison.
501
a70633a2
LM
5022011-10-13 Luis Machado <lgustavo@codesourcery.com>
503
504 * tracepoint.c (trace_save_command): Use filename instead of
505 args when printing.
506
e103e986
JK
5072011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
510 if .size is 0.
511
db24da6d
YQ
5122011-10-13 Yao Qi <yao@codesourcery.com>
513
514 PR gdb/12703
515 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
516 whether insn is a 32-bit Thumb-2 instruction.
517 (thumb_in_function_epilogue_p): Likewise.
518 (thumb_get_next_pc_raw): Likewise.
519 (arm_breakpoint_from_pc): Likewise.
520
1d6edc3c
JK
5212011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 Fix empty DWARF expressions DATA vs. SIZE conditionals.
524 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
525 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
526 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
527 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
528 zero DATA.
529 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
530 validity.
531 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
532 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
533 clear DATA on zero SIZE.
534
adabb602
DE
5352011-10-12 Doug Evans <dje@google.com>
536
537 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
538 header->first_die_offset here. All callers updated.
539
5048e516
JK
5402011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 Fix compatibility with texinfo versions older than 4.12.
543 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
544 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
545 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
546 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
547 * configure: Regenerate.
548 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
549 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
550 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
551
0574c78f
GB
5522011-10-12 Gary Benson <gbenson@redhat.com>
553
554 * breakpoint.h (pc_at_non_inline_function): Declare.
555 * breakpoint.c (is_non_inline_function,
556 pc_at_non_inline_function): New functions.
557 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
558 if the stop is at a location where functions cannot be inlined.
559
12d9289a
PA
5602011-10-12 Pedro Alves <pedro@codesourcery.com>
561
562 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
563 the core wanted them stopped, or if they now have a pending event
564 to report.
ecf8e7f5
PA
565 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
566 down to stop_and_resume_callback.
567 (linux_nat_wait_1): Always clear `options' when retrying. Handle
568 having new pending events after calling linux_nat_filter_event.
12d9289a 569
96408a79
SA
5702011-10-11 Sterling Augustine <saugustine@google.com>
571
572 * dwarf2read.c: Undo inadvertent changes in previous commit.
573
9c6c53f7
SA
5742011-10-11 Sterling Augustine <saugustine@google.com>
575
576 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
577 logic.
578
0e8aefe7
UW
5792011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
580
581 * symfile.c (separate_debug_file_exists): Fix condition.
582
349d1385
DM
5832011-10-11 David S. Miller <davem@davemloft.net>
584
585 * regcache.c (regcache_restore): Do not write unavailable regs, mark
586 static.
587 * regcache.h (regcache_restore): Remove declaration.
588
205c306f
DM
589 * gdbarch.sh: New field 'long_long_align_bit'.
590 * gdbarch.c, gdbarch.h: Regenerate.
591 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
592 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
593
941b2081
JK
5942011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 Revert this part of:
597 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
598 Support @entry in input expressions.
599 * c-exp.y (ENTRY, unknown_cpp_name): New.
600 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
601 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
602 (variable: name_not_typename '@' ENTRY, name: ENTRY)
603 (name_not_typename: ENTRY): New.
604 (yylex): Recognize ENTRY.
605
606 Reimplement @entry in input expressions.
607 * c-exp.y (ENTRY): New.
608 (variable: name_not_typename ENTRY): New.
609 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
610
3c4d7e12
PA
6112011-10-11 Pedro Alves <pedro@codesourcery.com>
612
613 * linux-nat.c (linux_handle_extended_wait): Always dump both the
614 parent and child's pids as soon as we detect a clone event.
615 Adjust another debug message.
616
ea23808b
PA
6172011-10-11 Pedro Alves <pedro@codesourcery.com>
618
619 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
620 not zombie instead of reading the whole file.
621
904578ed
JK
6222011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
623
624 Fix separate debuginfo warning with "remote:" access.
625 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
626 * symfile.c (get_file_crc): New function with the code moved from ...
627 (separate_debug_file_exists): ... this function, specifically variables
628 buffer and count. New variable verified_as_different, set it. Remove
629 file_crc initialization. Verify also if both files are not the same
630 manually, if needed.
631
51370a33
YQ
6322011-10-11 Yao Qi <yao@codesourcery.com>
633
634 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
635 to get address.
636
0838fb57
DE
6372011-10-10 Doug Evans <dje@google.com>
638
639 * linux-thread-db.c (thread_db_new_objfile): Only try to load
640 libthread_db when we load libpthread or the main symbol file.
641 (thread_db_inferior_created): New function.
642 (_initialize_thread_db): Attach inferior_created observer.
643 * linux-nat.c (linux_child_post_attach): Remove call to
644 check_for_thread_db.
645 (linux_child_post_startup_inferior): Ditto.
646 * objfiles.h (OBJF_MAINLINE): Define.
647 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
648 allocate_objfile when appropriate.
649
623bd5b7
UW
6502011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
651
652 PR gdb/13218
653 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
654 Remove unused variables.
655 (get_linux_version): Remove function.
656 (_initialize_arm_linux_nat): Do not call it.
657
79395f92
PA
6582011-10-10 Pedro Alves <pedro@codesourcery.com>
659
660 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
661 new clone lwp if the core asked it to stop. Don't pass on
662 unexpected signals to the new clone; leave them pending instead.
663
eff3df78
PA
6642011-10-10 Pedro Alves <pedro@codesourcery.com>
665
666 * linux-nat.c (resume_lwp): Remove redundant debug output.
667
4b60df3d
PA
6682011-10-10 Pedro Alves <pedro@codesourcery.com>
669
670 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
671 last_resume_kind before clearing it, and use the copy instead to
672 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
673 resume_clear_callback in the non-stop path too.
674
6501578c
YQ
6752011-10-09 Yao Qi <yao@codesourcery.com>
676
677 * valprint.c (value_check_printable): Add one parameter OPTIONS.
678 Honor OPTIONS and VAL's type.
679 (common_val_print, value_print): Update to pass one more parameter.
680
5a56e9c5
DE
6812011-10-09 Doug Evans <dje@google.com>
682
683 Add new "alias" command.
684 * NEWS: Mention new command.
685 * command.h (valid_user_defined_cmd_name_p): Declare.
686 * defs.h (make_cleanup_dyn_string_delete): Declare.
687 * utils.c: #include "dyn-string.h".
688 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
689 * cli/cli-cmds.c: #include "dyn-string.h".
690 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
691 (init_cli_cmds): Add new command.
692 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
693
509f0fd9
JK
6942011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
695
696 Fix compatibility with older GCCs.
697 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
698 * stack.c (read_frame_arg): Initialize val_deref.
699
2bda9cc5
JK
7002011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
701
702 Entry values NEWS entries, DWARF disassembly support.
703 * NEWS: New entry values entry.
704 (set print entry-values, show print entry-values)
705 (set debug entry-values, show debug entry-values): New entries.
706 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
707 indent. Remove variable start. Move header printing out. Respect
708 INDENT. Support DW_OP_GNU_entry_value.
709 (locexpr_describe_location_1): Move the header printing here, extend
710 the disassemble_dwarf_expression passed parameters.
711
a471c594
JK
7122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
713
714 Display @entry parameter values even for references.
715 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
716 coerce_ref_if_computed.
717 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
718 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
719 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
720 existing push_dwarf_reg_entry_value call. Add new detection calling
721 dwarf_block_to_dwarf_reg_deref. Update the error message.
722 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
723 * dwarf2expr.h
724 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
725 parameter deref_size, describe it in the comment.
726 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
727 (dwarf_block_to_dwarf_reg_deref): New declaration.
728 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
729 deref_size, describe it in the function comment. New variables
730 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
731 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
732 describe it in the function comment. Fetch the alternative block
733 accoring to DEREF_SIZE.
734 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
735 (entry_data_value_free_closure, entry_data_value_funcs): New.
736 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
737 outer_val, target_val, val and addr. Try to fetch and create also
738 referenced value content.
739 (pieced_value_funcs): NULL value for coerce_ref.
740 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
741 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
742 coerce_ref_if_computed.
743 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
744 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
745 * stack.c (read_frame_arg): Compare also dereferenced values.
746 * value.c (value_computed_funcs): Make the parameter v const, use
747 value_lval_const for it.
748 (value_lval_const, coerce_ref_if_computed): New function.
749 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
750 * value.h (struct lval_funcs): New field coerce_ref.
751 (value_computed_funcs): Make the parameter v const.
752 (value_lval_const, coerce_ref_if_computed): New declarations.
753
36b11add
JK
7542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
755
756 Support @entry in input expressions.
757 * c-exp.y (ENTRY, unknown_cpp_name): New.
758 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
759 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
760 (variable: name_not_typename '@' ENTRY, name: ENTRY)
761 (name_not_typename: ENTRY): New.
762 (yylex): Recognize ENTRY.
763 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
764 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
765 Likewise.
766 * parse.c (operator_length_standard): Likewise.
767 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
768
3343315b
JK
7692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
770
771 Display referenced values in backtraces.
772 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
773 * stack.c (print_frame_arg): Likewise.
774
ac71a68c
JK
7752011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 Make some lval_funcs methods to default on NULL.
778 * valops.c (value_fetch_lazy): Check if lval_computed read method is
779 NULL.
780 (value_assign): Check if lval_computed write method is NULL.
781 * value.h (struct lval_funcs): Comment NULL values for read and write
782 methods.
783
e18b2753
JK
7842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
785
786 Display @entry parameter values (without references).
787 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
788 New functions.
789 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
790 New declarations.
791 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
792 entry record.
793 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
794 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
795 functions.
796 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
797 (loclist_read_variable_at_entry): New function.
798 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
799 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
800 DW_AT_location, call dwarf_block_to_sp_offset for it.
801 * frame.h (print_entry_values_no, print_entry_values_only)
802 (print_entry_values_preferred, print_entry_values_if_needed)
803 (print_entry_values_both, print_entry_values_compact)
804 (print_entry_values_default, print_entry_values): New declarations.
805 (struct frame_arg): New field entry_kind.
806 (read_frame_arg): New parameter entryargp.
807 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
808 arg->entry_kind. Optionally print the `@entry' suffix.
809 (list_args_or_locals): New variable entryarg, initialize it.
810 Initialize also entry_kind of arg and entryarg. Conditionalize
811 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
812 xfree for entryarg.error.
813 * stack.c (print_entry_values_no, print_entry_values_only)
814 (print_entry_values_preferred, print_entry_values_if_needed)
815 (print_entry_values_both, print_entry_values_compact)
816 (print_entry_values_default, print_entry_values_choices)
817 (print_entry_values): New variables.
818 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
819 print the `@entry' suffix, possibly in combination for
820 print_entry_values_compact.
821 (read_frame_arg): New parameter entryargp, new variables entryval,
822 entryval_error and val_equal. Read in also entryargp, respect
823 print_entry_values, compare the values using val_equal, fill in also
824 argp->entry_kind (together with entryargp->entry_kind).
825 (print_frame_args): New variable entryarg, initialize it.
826 Conditionalize print_frame_arg for arg, add print_frame_arg for
827 entryarg. Call xfree for entryarg.error.
828 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
829 * symtab.h (struct symbol_computed_ops): New field
830 read_variable_at_entry.
831
93d86cef
JK
8322011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 Code reshuffle.
835 * frame.h (struct frame_arg): New definition.
836 (read_frame_arg): New declaration.
837 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
838 (list_args_or_locals): ... the code here. New variable arg, call
839 read_frame_arg and list_arg_or_local with it. Unify the
840 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
841 arg.error.
842 * stack.c (print_frame_arg): New functiom from the code of
843 print_frame_args.
844 (read_frame_arg): New function.
845 (print_frame_args): Remove variable val. New variable arg, call
846 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
847
2d6c5dc2
JK
8482011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
849
850 Protect entry values against self tail calls.
851 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
852 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
853
111c6489
JK
8542011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
855
856 Recognize virtual tail call frames.
857 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
858 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
859 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
860 * dwarf2-frame-tailcall.c: New file.
861 * dwarf2-frame-tailcall.h: New file.
862 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
863 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
864 REGS.PREV only after CIE execution.
865 (struct dwarf2_frame_cache): New field tailcall_cache.
866 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
867 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
868 parts, try to find entry_cfa_sp_offset. Call
869 dwarf2_tailcall_sniffer_first.
870 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
871 when appropriate.
872 (dwarf2_frame_dealloc_cache): New function.
873 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
874 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
875 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
876 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
877 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
878 * dwarf2loc.c (func_addr_to_tail_call_list)
879 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
880 (call_site_find_chain_1, call_site_find_chain): New.
881 * dwarf2loc.h (struct call_site_chain): New.
882 (call_site_find_chain): New declaration.
883 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
884 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
885 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
886 * stack.c (frame_info): Support also TAILCALL_FRAME.
887
bb984ff1
JK
8882011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
889
890 Tail call sites reader implementation.
891 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
892 fill in TYPE_TAIL_CALL_LIST.
893 * gdbtypes.h (struct func_type): New field tail_call_list.
894 (struct call_site): New field tail_call_next.
895 (TYPE_TAIL_CALL_LIST): New definition.
896
8e3b41a9
JK
8972011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 Implement basic support for DW_TAG_GNU_call_site.
900 * block.c: Include gdbtypes.h and exceptions.h.
901 (call_site_for_pc): New function.
902 * block.h (call_site_for_pc): New declaration.
903 * defs.h: Include hashtab.h.
904 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
905 declarations.
906 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
907 ctx_no_push_dwarf_reg_entry_value.
908 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
909 (dwarf_block_to_dwarf_reg): New function.
910 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
911 (ctx_no_push_dwarf_reg_entry_value): New function.
912 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
913 push_dwarf_reg_entry_value.
914 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
915 declarations.
916 * dwarf2loc.c: Include gdbcmd.h.
917 (dwarf_expr_ctx_funcs): New forward declaration.
918 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
919 (dwarf_expr_reg_to_entry_parameter)
920 (dwarf_expr_push_dwarf_reg_entry_value): New.
921 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
922 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
923 (needs_dwarf_reg_entry_value): New function.
924 (needs_frame_ctx_funcs): Install it.
925 (_initialize_dwarf2loc): New function.
926 * dwarf2loc.h (entry_values_debug): New declaration.
927 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
928 (read_call_site_scope): New forward declaration.
929 (process_full_comp_unit): Copy call_site_htab.
930 (process_die): Support DW_TAG_GNU_call_site.
931 (read_call_site_scope): New function.
932 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
933 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
934 (cleanup_htab): Delete.
935 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
936 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
937 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
938 FIELD_LOC_KIND_DWARF_BLOCK.
939 * gdbtypes.h (enum field_loc_kind): New entry
940 FIELD_LOC_KIND_DWARF_BLOCK.
941 (struct main_type): New loc entry dwarf_block.
942 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
943 (TYPE_FIELD_DWARF_BLOCK): New.
944 * python/py-type.c: Include dwarf2loc.h.
945 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
946 internal_error call on unknown FIELD_LOC_KIND.
947 * symtab.h (struct symtab): New field call_site_htab.
948 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
949 (core_addr_hash, core_addr_eq): New functions.
950
b6cdc2c1
JK
9512011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
952
953 Code reshuffle.
954 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
955 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
956 calling_convention under func_stuff there.
957 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
958 (init_type) <TYPE_CODE_FUNC>: Likewise.
959 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
960 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
961 * gdbtypes.h (enum type_specific_kind): Change
962 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
963 (struct main_type) <type_specific>: Change calling_convention to
964 func_stuff. Move calling_convention to ...
965 (struct func_type): ... this new struct.
966 (INIT_FUNC_SPECIFIC): New #define.
967 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
968
181cebd4
JK
9692011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
970
971 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
972 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
973 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
974 ctx->ref_addr_size. Handle its invalid value.
975 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
976 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
977 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
978 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
979 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
980 (dwarf2_per_cu_ref_addr_size): New function.
981
c471e790
JK
9822011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
983
984 Code cleanup.
985 * dwarf2read.c (per_cu_header_read_in): New function.
986 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
987 variables cu_header_local and cu_headerp.
988
741f5e3c
JK
9892011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 Fix initial language detection with -readnow.
992 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
993 * symfile.h (struct quick_symbol_functions): State find_symbol_file
994 searches only for global symbols.
995
a73d2258
JK
9962011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
997
998 Fix printed anonymous struct name.
999 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1000 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1001 (anonymous_struct_prefix): New function.
1002 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1003 (dwarf2_name): Strip for anonymous structs any prefixes.
1004
749fd4ea
DE
10052011-10-07 Doug Evans <dje@google.com>
1006
1fa57852
DE
1007 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1008 `replace'.
1009
690a4937
DE
1010 * python/lib/gdb/printing.py: Whitespace cleanup.
1011
749fd4ea
DE
1012 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1013 warning.
1014
4c38200f
PA
10152011-10-07 Pedro Alves <pedro@codesourcery.com>
1016
1017 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1018 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1019 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1020 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1021 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1022 (arm_linux_remove_watchpoint): Adjust.
1023 * i386-linux-nat.c (i386_linux_dr_set_control)
1024 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1025 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1026 (ia64_linux_remove_watchpoint): Adjust.
1027 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1028 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1029 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1030 (ppc_linux_insert_mask_watchpoint)
1031 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1032 (ppc_linux_remove_watchpoint): Adjust.
1033 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1034 Adjust.
1035
b7ff339d
CV
10362011-10-07 Corinna Vinschen <vinschen@redhat.com>
1037
1038 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1039 (clear_win32_environment): New function for Cygwin to clear out
1040 Win32 environment.
1041 (windows_create_inferior): Prepare new environment from in_env
1042 for Cygwin, too.
1043
f287c1f3
PM
10442011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1045
5631e596 1046 PR python/13264
f287c1f3
PM
1047 * python/py-value.c (valpy_call): Check that arguments are
1048 a tuple.
1049 (is_intlike): Remove call to CHECK_TYPEDEF.
1050 (valpy_nonzero): Catch GDB exceptions.
1051 (valpy_absolute): Ditto.
1052 (valpy_lazy_string): Ditto.
1053 (valpy_call): Ditto.
1054 (valpy_get_is_optimized_out): Ditto.
1055 (valpy_long): Ditto.
1056 (valpy_float): Ditto.
1057 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1058 (valpy_richcompare): Ditto.
1059
03583c20
UW
10602011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1061
1062 * inferior.h (disable_randomization): Declare.
1063 * infrun.c (disable_randomization): New global variable.
1064 (show_disable_randomization): New function.
1065 (set_disable_randomization): Likewise.
1066 (_initialize_infrun): Install set/show disable-randomization
1067 commands.
1068 * linux-nat.c (disable_randomization): Remove.
1069 (show_disable_randomization): Likewise.
1070 (set_disable_randomization): Likewise.
1071 (_initialize_linux_nat): No longer install set/show
1072 disable-randomization commands here.
1073 (linux_nat_supports_disable_randomization): New function.
1074 (linux_nat_add_target): Install it.
1075 * remote.c (PACKET_QDisableRandomization): New enum value.
1076 (remote_protocol_packets): Support QDisableRandomization.
1077 (_initialize_remote): Likewise.
1078 (remote_supports_disable_randomization): New function.
1079 (init_remote_ops): Install it.
1080 (extended_remote_supports_disable_randomization): New function.
1081 (init_extended_remote_ops): Install it.
1082 (extended_remote_disable_randomization): New function.
1083 (extended_remote_create_inferior_1): Call it.
1084 * target.h (struct target_ops): Add to_supports_disable_randomization.
1085 (target_supports_disable_randomization): Add prototype.
1086 * target.c (target_supports_disable_randomization): New function.
1087 (find_default_supports_disable_randomization): Likewise.
1088 (init_dummy_target): Install it.
1089
20c168b5
KP
10902011-10-07 Kevin Pouget <kevin.pouget@st.com>
1091
1092 Allow Python notification of new object-file loadings.
1093 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1094 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1095 Add build rule for this file.
1096 * python/py-event.h (emit_new_objfile_event): New prototype.
1097 (newobjfile): New Python event emitter.
1098 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1099 Python event registry.
1100 * python/py-inferior.c: Include objfiles.h
1101 (python_new_objfile): New function.
1102 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1103 observers.
1104 * python/py-newobjfileevent.c: New file.
1105 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1106 prototype.
1107 * python/python.c (_initialize_python): Add
1108 gdbpy_initialize_new_objfile_event call.
1109 * NEWS: Add item for new Python event "gdb.newobjfile"
1110
b1c8db38
TG
11112011-10-05 Tristan Gingold <gingold@adacore.com>
1112
1113 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1114 Extract the ravenscar task name from the symbol for the atcb.
1115
0dab82e9
PK
11162011-10-04 Paul Koning <paul_koning@dell.com>
1117
1118 * python/py-type.c (typy_make_iter): Add forward declaration.
1119 (typy_fields_items): Use the gdb.Type iterator.
1120
84ad80e6
PK
11212011-10-04 Paul Koning <paul_koning@dell.com>
1122
1123 * NEWS: Add entry for Python gdb.Type mapping methods.
1124
cb6be26b
KP
11252011-10-04 Kevin Pouget <kevin.pouget@st.com>
1126
1127 PR python/12691: Add the inferior to Python exited event
1128 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1129 to exited_event.
1130 * python/py-event.h (emit_exited_event): Likewise
1131 * python/-inferior.c (python_inferior_exit): Likewise
1132
6005b210
JB
11332011-10-03 Joel Brobecker <brobecker@adacore.com>
1134
1135 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1136 in output of -ada-task-info GDB/MI command.
1137
75082e8c
JB
11382011-10-03 Joel Brobecker <brobecker@adacore.com>
1139
1140 * ada-lang.h (struct inferior): Declare.
1141 (print_ada_task_info): Add declaration.
1142 * ada-tasks.c (print_ada_task_info): Make non-static.
1143 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1144 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1145 * mi/mi-main.c: #include "ada-lang.h".
1146 (mi_cmd_list_features): Add "ada-task-info" to the list
1147 of supported features.
1148 (mi_cmd_ada_task_info): New function.
1149
7ed7d719
JB
11502011-10-03 Joel Brobecker <brobecker@adacore.com>
1151
1152 * python/python.c (python_run_simple_file): New function.
1153 (source_python_script, source_python_script_for_objfile):
1154 Replace call to PyRun_SimpleFile by call to
1155 python_run_simple_file.
1156
3fcaed38
PK
11572011-10-03 Paul Koning <paul_koning@dell.com>
1158
1159 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1160 (value_to_value_object): Fetch value if it was lazy.
1161
8e5c319d
JK
11622011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Code cleanup.
1165 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1166 Rearrange the code for it.
1167
dd11a36c
JB
11682011-10-02 Joel Brobecker <brobecker@adacore.com>
1169
1170 * breakpoint.c (bkpt_print_recreate): Add call to
1171 print_recreate_thread.
1172
723b724b
MF
11732011-09-29 Mike Frysinger <vapier@gentoo.org>
1174
1175 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1176 PTRACE_GETFDPIC_INTERP): Define.
1177
412946b6
YQ
11782011-09-28 Yao Qi <yao@codesourcery.com>
1179
1180 * symfile.c (add_symbol_file_command): Update message on usage.
1181
a73bb892
PK
11822011-09-28 Paul Koning <paul_koning@dell.com>
1183
1184 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1185 (typy_length, typy_get, typy_has_key, typy_make_iter)
1186 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1187 (typy_iterator_iter, typy_iterator_iternext)
1188 (typy_iterator_dealloc): New functions to implement standard
1189 Python mapping methods on gdb.Type object.
1190 (gdb.TypeIterator): New Python type.
1191 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1192
fe10a582
DM
11932011-09-28 David S. Miller <davem@davemloft.net>
1194
1195 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1196 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1197 * sparc-tdep.c (sparc_complex_floating_p): New function.
1198 (sparc32_store_arguments): Handle complex floats.
1199 (sparc32_extract_return_value): Likewise.
1200 (sparc32_store_return_value): Likewise.
1201 (sparc32_stabs_argument_has_addr): Likewise.
1202 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1203 (sparc64_store_floating_fields): Handle complex floats.
1204 (sparc64_store_arguments): Likewise.
1205 (sparc64_store_return_value): Likewise.
1206
c93dbcba
EZ
12072011-09-28 Eli Zaretskii <eliz@gnu.org>
1208
1209 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1210 before the change on 2006-12-09.
1211 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1212 generates the environment block for CreateProcessA, modulo the
1213 Cygwin-specific parts that are not needed here.
1214
f00c55f8
TG
12152011-09-27 Tristan Gingold <gingold@adacore.com>
1216
1217 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1218 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1219 (darwin_solib_get_all_image_info_addr_at_init): New function.
1220 (darwin_solib_read_all_image_info_addr): Likewise.
1221 (darwin_solib_create_inferior_hook): Use the above two functions.
1222 * darwin-nat.c (darwin_execvp): Renames retval to res.
1223 (darwin_read_write_inferior): Update comment.
1224 (darwin_read_dyld_info): New function.
1225 (darwin_xfer_partial): Handle DYLD_INFO.
1226
6710bf39
SS
12272011-09-27 Stan Shebs <stan@codesourcery.com>
1228
1229 Add return address collection for tracepoints.
1230 * tracepoint.c (encode_actions_1): Add case for $_ret.
1231 (validate_actionline): Check for $_ret.
1232 (trace_dump_actions): Ditto.
1233 * ax-gdb.h (gen_trace_for_return_address): Declare.
1234 * ax-gdb.c: Include arch-utils.h.
1235 (gen_trace_for_return_address): New function.
1236 (agent_command): Add return address special case.
1237 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1238 (amd64_gen_return_address): New function.
1239 (amd64_init_abi): Call it.
1240 * i386-tdep.c: Include ax.h and ax-gdb.h.
1241 (i386_gen_return_address): New function.
1242 (i386_init_abi): Call it.
1243 * arch-utils.h (default_gen_return_address): Declare.
1244 * arch-utils.c (default_gen_return_address): New function.
1245 * gdbarch.sh (gen_return_address): New method.
1246 * gdbarch.h, gdbarch.c: Regenerate.
1247
e04e5beb
JM
12482011-09-23 Joseph Myers <joseph@codesourcery.com>
1249
1250 PR gdb/13079
1251 * i386-tdep.c (i386_frame_align): New.
1252 (i386_gdbarch_init): Use i386_frame_align.
1253
f3d6df6d
YQ
12542011-09-23 Yao Qi <yao@codesourcery.com>
1255
1256 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1257 to get address.
1258
e69860f1
TG
12592011-09-22 Tristan Gingold <gingold@adacore.com>
1260
1261 * fork-child.c (fork_inferior): Add exec_fun parameter.
1262 Call exec_fun or execvp.
1263 * inferior.h: Adjust prototype.
1264 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1265 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1266 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1267 * procfs.c (procfs_create_inferior): Ditto.
1268 * darwin-nat.c (darwin_execvp): New function.
1269 (darwin_create_inferior): Use it.
1270
4b51d87b
YQ
12712011-09-22 Yao Qi <yao@codesourcery.com>
1272
1273 * infrun.c (context_switch): Print debug message when switching to
1274 a different thread.
1275
56b9d9ac
UW
12762011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1277
1278 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1279 complex and vector types.
1280 (s390_return_value_convention): Likewise.
1281
1282 (s390_value_from_register): Call check_typedef.
1283 (extend_simple_arg): Likewise.
1284 (alignment_of): Likewise.
1285 (s390_push_dummy_call): Likewise.
1286 (s390_return_value): Likewise.
1287
b2cd6b29
JM
12882011-09-21 Joseph Myers <joseph@codesourcery.com>
1289
1290 * event-top.c (async_disconnect): If an exception is thrown from
1291 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1292 catch_errors.
1293 * top.c (quit_cover): Return void and take no arguments.
1294 * top.h (quit_cover): Update prototype.
1295
67ba4e42
JM
12962011-09-20 Joseph Myers <joseph@codesourcery.com>
1297
1298 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1299 current_uiout, not uiout.
1300
562f943b
DE
13012011-09-19 Doug Evans <dje@google.com>
1302
1303 * python/py-auto-load.c (source_section_scripts): Fix file
1304 descriptor leak.
1305 * python/python.c (source_python_script_for_objfile): Tweak comments.
1306
34518530
YQ
13072011-09-18 Yao Qi <yao@codesourcery.com>
1308 Ulrich Weigand <ulrich.weigand@linaro.org>
1309
1310 Support displaced stepping for Thumb 16-bit insns.
1311 * arm-tdep.c (THUMB_NOP) Define.
1312 (thumb_copy_unmodified_16bit): New.
1313 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1314 (thumb_copy_alu_reg): New.
1315 (arm_copy_svc): Move some common code to ...
1316 (install_svc): ... here. New.
1317 (thumb_copy_svc): New.
1318 (install_pc_relative): New.
1319 (thumb_copy_pc_relative_16bit): New.
1320 (thumb_decode_pc_relative_16bit): New.
1321 (thumb_copy_16bit_ldr_literal): New.
1322 (thumb_copy_cbnz_cbz): New.
1323 (cleanup_pop_pc_16bit_all): New.
1324 (thumb_copy_pop_pc_16bit): New.
1325 (thumb_process_displaced_16bit_insn): New.
1326 (thumb_process_displaced_32bit_insn): New.
1327 (thumb_process_displaced_insn): process thumb instruction.
1328
1329 Support displaced stepping for Thumb 32-bit insns.
1330 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1331 (thumb2_copy_preload): New.
1332 (thumb2_copy_copro_load_store): New.
1333 (thumb2_copy_b_bl_blx): New.
1334 (thumb2_copy_alu_imm): New.
1335 (thumb2_copy_load_reg_imm): New.
1336 (thumb2_copy_load_literal): New
1337 (thumb2_copy_block_xfer): New.
1338 (thumb_32bit_copy_undef): New.
1339 (thumb_32bit_copy_unpred): New.
1340 (thumb2_decode_ext_reg_ld_st): New.
1341 (thumb2_decode_svc_copro): New.
1342 (decode_thumb_32bit_store_single_data_item): New.
1343 (thumb_copy_pc_relative_32bit): New.
1344 (thumb_decode_pc_relative_32bit): New.
1345 (decode_thumb_32bit_ld_mem_hints): New.
1346 (thumb2_copy_table_branch): New
1347 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1348 instructions.
1349
2b16b2e3
YQ
13502011-09-18 Yao Qi <yao@codesourcery.com>
1351
1352 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1353 (install_b_bl_blx): Likewise.
1354
0f6f04ba
YQ
13552011-09-17 Yao Qi <yao@codesourcery.com>
1356
1357 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1358 (install_load_store): ... this. New.
1359 Change parameter BYTE to SIZE.
1360 (arm_copy_ldr_str_ldrb_strb): Update caller.
1361 (arm_decode_ld_st_word_ubyte): Update caller.
1362
e2d96639
YQ
13632011-09-17 Yao Qi <yao@codesourcery.com>
1364
1365 * infrun.c (displaced_step_fixup): Move some code ...
1366 (displaced_step_restore): ... here. New function.
1367 (handle_inferior_event): Cleanup displaced stepping state for both
1368 child and parent when get forked or vforked event.
1369 * regcache.c (get_thread_arch_aspace_regcache): New function.
1370 get_thread_arch_regcache (): Call it.
1371
a8123151
JB
13722011-09-16 Joel Brobecker <brobecker@adacore.com>
1373
1374 * ada-tasks.c (print_ada_task_info): New function, merging
1375 short_task_info and info_tasks together. Reimplement using
1376 ui-out instead of printing to stdout directly. Move the code
1377 building and checking the task list here, instead of leaving it
1378 in info_tasks_command.
1379 (info_task): Move the code building and checking the task
1380 list here, instead of leaving it in info_tasks_command.
1381 (info_tasks_command): Delete code building and checking
1382 the task list - moved elsewhere. Update calls to info_tasks
1383 and info_task.
1384
fbf06824
JB
13852011-09-16 Joel Brobecker <brobecker@adacore.com>
1386
1387 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1388
34a0bc90
JB
13892011-09-16 Joel Brobecker <brobecker@adacore.com>
1390
1391 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1392
79779fa9
JB
13932011-09-16 Joel Brobecker <brobecker@adacore.com>
1394
1395 * ada-lang.h (ada_build_task_list): Remove parameter
1396 `warn_if_null'.
1397 * ada-tasks.c (ada_build_task_list): Remove parameter
1398 `warn_if_null'. Adjust implementation and documentation.
1399 (valid_task_id, ada_get_environment_task)
1400 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1401 (info_tasks_command): Adjust implementation.
1402 (task_command): Likewise.
1403 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1404 to ada_build_task_list.
1405
e225eb91
JB
14062011-09-16 Joel Brobecker <brobecker@adacore.com>
1407
1408 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1409 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1410 (ada_tasks_inferior_data_handle): New static global.
1411 (get_ada_tasks_inferior_data): New function.
1412 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1413 (ada_get_environment_task, iterate_over_live_ada_tasks)
1414 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1415 Adjust.
1416 (ada_set_current_inferior_known_tasks_addr): New function.
1417 (read_known_tasks, ada_build_task_list, short_task_info)
1418 (info_tasks, info_task, info_tasks_command, task_command_1)
1419 (task_command, ada_task_list_changed): Adjust.
1420 (ada_tasks_invalidate_inferior_data): New function.
1421 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1422 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1423 * ada-lang.h (struct inferior): Add declaration.
1424 (ada_task_list_changed): Update profile.
1425 * remote-wtx-pd.c: #include "inferior.h".
1426 (switch_to_pd_internal): Update call to ada_task_list_changed.
1427
6da9ca05
JB
14282011-09-16 Joel Brobecker <brobecker@adacore.com>
1429
1430 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1431 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1432 (atcb_fieldno): Delete these static globals.
1433 (struct ada_tasks_pspace_data): New struct.
1434 (ada_tasks_pspace_data_handle): New static global.
1435 (get_ada_tasks_pspace_data): New function.
1436 (ada_tasks_invalidate_pspace_data): New function.
1437 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1438 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1439 (_initialize_tasks): Create this module's per-progspace
1440 data handle.
1441
dccd3cbd
JB
14422011-09-16 Joel Brobecker <brobecker@adacore.com>
1443
1444 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1445
f877b031
TG
14462011-09-16 Tristan Gingold <gingold@adacore.com>
1447
1448 * fork-child.c (fork_inferior): Update comment. Use alloca
1449 instead of xmalloc for argv. Move len and shell_command
1450 declarations in the block where they are used.
1451 Only call execvp. Factorize failure code.
1452
ae0c443d
JK
14532011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1454
1455 Code cleanup.
1456 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1457 `exp_element' instead of an element of the same and make the function
1458 static.
1459 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1460 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1461 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1462 Change argument of `write_exp_elt' function call.
1463 Remove extra spaces from comments.
1464 * parser-defs.h (write_exp_elt): Remove prototype.
1465
5af65ec0
PK
14662011-09-15 Paul Koning <paul_koning@dell.com>
1467
1468 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1469 count of item appended to list.
1470 * python/py-type.c (typy_fields): Likewise.
1471
72be8ccc
PK
14722011-09-15 Paul Koning <paul_koning@dell.com>
1473
883640a8 1474 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1475
92f6badc
KP
14762011-09-15 Kevin Pouget <kevin.pouget@st.com>
1477
1478 PR threads/12628
1479 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1480 processes with multiple threads.
1481 (inf_has_multiple_thread_cb): New function.
1482 (inf_has_multiple_threads): New function.
1483
0672bf41 14842011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1485
1486 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1487 * python/py-inferior.c (GdbMethods): New Python method definition.
1488
6839b47f
KP
14892011-09-15 Kevin Pouget <kevin.pouget@st.com>
1490
1491 Handle multiple breakpoint hits in Python interface:
1492 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1493 variable to breakpoints.
1494 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1495 bps instead of single breakpoint. Fix some space typos.
1496 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1497 variable to breakpoints.
1498
672f9b60
KP
14992011-09-15 Kevin Pouget <kevin.pouget@st.com>
1500
1501 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1502 note if the breakpoint is internal.
1503
43675ae4
KP
15042011-09-15 Kevin Pouget <kevin.pouget@st.com>
1505
0672bf41 1506 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1507
15148d6a
PA
15082011-09-14 Pedro Alves <pedro@codesourcery.com>
1509
1510 * infrun.c (prepare_for_detach, wait_for_inferior)
1511 (fetch_inferior_event): Don't flush the register cache.
1512 * remote.c (struct stop_reply) <regcache>: Add comment.
1513
d83e736b
JK
15142011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1515
1516 Remove excessive DWARF expressions memory duplication.
1517 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1518 for block.data.
1519 (indirect_pieced_value): Remove variable result. Remove variable
1520 back_to and its use for baton.data.
1521 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1522 block.data.
1523 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1524 Update the function comment.
1525
c65b3e0d
PA
15262011-09-13 Pedro Alves <pedro@codesourcery.com>
1527
1528 * inferior.h (ALL_INFERIORS): New.
1529 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1530 for a stopped thread.
1531 (thread_db_find_new_threads): Look for threads in all inferiors.
1532
a1398e0c
PA
15332011-09-13 Pedro Alves <pedro@codesourcery.com>
1534
1535 * breakpoint.c (update_watchpoint): Handle the case of the
1536 watchpoint to update not being in the breakpoint list yet.
1537 (hw_watchpoint_use_count): New, factored out from
1538 hw_watchpoint_used_count.
1539 (hw_watchpoint_used_count): Rename to ...
1540 (hw_watchpoint_used_count_others): ... this. Add `except'
1541 parameter. Don't count resources of `except'. Use
1542 hw_watchpoint_use_count.
1543
30596231
PA
15442011-09-13 Pedro Alves <pedro@codesourcery.com>
1545
1546 * gdbthread.h (enum thread_state): Moved here.
1547 (struct thread_info): Rename `executing_' field to `executing' and
1548 `state_' to `state'.
1549 * thread.c (enum thread_state): Moved to gdbthread.h.
1550 (new_thread, add_thread_silent, delete_thread_1)
1551 (any_live_thread_of_process, thread_alive, set_running)
1552 (set_running, is_thread_state, any_running, is_executing)
1553 (set_executing, finish_thread_state, print_thread_info)
1554 (do_captured_thread_select): Adjust.
1555
bede5f5f
JK
15562011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1557
1558 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1559 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1560
4801a9a3
PA
15612011-09-12 Pedro Alves <pedro@codesourcery.com>
1562 Matt Rice <ratmice@gmail.com>
1563
1564 PR gdb/13175
1565
1566 * interps.c (struct interp) <interpreter_out>: Delete field.
1567 (interp_new): Remove the data and uiout parameters and adjust.
1568 (interp_set): Only set the current_uiout from the interpreter's
1569 uiout after initializing the interpreter. Adjust call to
1570 init_proc.
1571 (interp_ui_out): Adjust to call procs->ui_out_proc.
1572 (interp_data, interp_name): New.
1573 * interps.h (interp_init_ftype): Add `self' parameter.
1574 (interp_ui_out_ftype): New typedef.
1575 (struct interp_procs) <ui_out_proc>: New method pointer.
1576 (interp_new): Remove the data and uiout parameters.
1577 (interp_data, interp_name): Declare.
1578 * tui/tui-interp.c (tui_init): Adjust prototype.
1579 (tui_ui_out): New.
1580 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1581 tui_out here. Adjust call to interp_new.
1582 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1583 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1584 (cli_ui_out): New.
1585 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1586 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1587 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1588 Initialize mi->uiout depending on the mi_version as extracted from
1589 the interpreter's name.
1590 (mi_ui_out): New.
1591 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1592 interp_new. Don't allocate the ui_out's of the interpreters here.
1593
d0afda03 15942011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 1595
d0afda03 1596 * solib.c (solib_used): New function.
59145f8c
AR
1597 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1598 by another so_list object before freeing it.
1599
bdaf8d4a
JK
16002011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 Code cleanup.
1603 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1604 values.
1605
df15bd07
JK
16062011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1607
1608 Code cleanup.
1609 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1610 (amd64_skip_xmm_prologue): ... this new function. Describe its
1611 parameters. No longer use amd64_prologue_line_bug.
1612 * defs.h (producer_is_gcc_ge_4): New declaration.
1613 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1614 (process_full_comp_unit): Update its caller. Remove
1615 amd64_prologue_line_bug initialization.
1616 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1617 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1618
25289eb2
PA
16192011-09-09 Pedro Alves <pedro@codesourcery.com>
1620
1621 * linux-nat.h (enum resume_kind): New.
1622 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1623 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1624 resume_stop on the new lwp.
25289eb2
PA
1625 (add_lwp): Set last_resume_kind as resume_continue by default.
1626 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1627 (resume_lwp): New, factored out from resume_callback. Also check
1628 for pending status in lp->waitstatus.
1629 (resume_callback): Reimplement.
1630 (resume_clear_callback): Set last_resume_kind as resume_stop.
1631 (resume_set_callback): Set last_resume_kind as resume_continue.
1632 (linux_nat_resume, linux_handle_extended_wait): Set
1633 last_resume_kind.
1634 (running_callback): Also check lp->waitstatus for pending events.
1635 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1636 is resume_step.
1637 (stop_and_resume_callback): Don't re-resume if the core wanted the
1638 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1639 using an invalidated pointer.
1640 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1641 SIGSTOPs if the core wanted the LWP to stop.
1642 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1643 wanted the lwp to stop. If the core wanted the lwp to stop, and
1644 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1645 of TARGET_SIGNAL_STOP.
1646 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1647 here. Instead, signal the lwp, and set the last_resume_kind to
1648 resume_stop.
1649
f687d035
PA
16502011-09-09 Pedro Alves <pedro@codesourcery.com>
1651
1652 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1653 -1 (error), if the lwp exits right after attaching.
1654
bc587a6b
DE
16552011-09-08 Doug Evans <dje@google.com>
1656
63d97a20
DE
1657 * py-cmd.c: Some minor formatting fixes.
1658 (gdbpy_parse_command_name): Rename text arg to name, make const.
1659 All callers updated.
1660 * python-internal.h (gdbpy_parse_command_name): Update.
1661
bc587a6b
DE
1662 * cli/cli-decode.c (add_cmd): Add comment.
1663
08711b9a
JK
16642011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1665
1666 PR breakpoints/12435
1667 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1668 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1669 * dwarf2read.c (process_full_comp_unit): Initialize
1670 amd64_prologue_line_bug.
1671 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1672
b2e7f004
JK
16732011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1674
1675 Fix TUI screen corruption.
1676 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1677 batch_flag.
1678
8afd712c
JK
16792011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 * findvar.c (read_var_value): Never return NULL, throw an error
1682 instead. Update the function comment. State symbol name in the error
1683 messages.
1684 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1685 read_var_value.
1686 * stack.c (print_frame_args): Likewise.
1687 * valops.c (value_of_variable): Likewise.
1688
b99b5f66
JK
16892011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1690
1691 * stack.c (print_frame_args): New variable except. Wrap
1692 read_var_value and common_val_print into TRY_CATCH.
1693
85bc8cb7
JK
16942011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1697 caller to value_of_this.
1698 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1699 Twice.
1700 * valops.c (value_of_this): Remove parameter complain and variable ret.
1701 Update function comment. Never return NULL by this code.
1702 (value_of_this_silent): New function.
1703 * value.h (value_of_this): Remove parameter complain.
1704 (value_of_this_silent): New declaration.
1705
ede1849f
YQ
17062011-09-07 Yao Qi <yao@codesourcery.com>
1707
1708 * gdbthread.h (struct thread_info): Remove fields
1709 `stepping_through_solib_after_catch' and
1710 `stepping_through_solib_catchpoints'.
1711 * infrun.c (init_thread_stepping_state): Update.
1712 (process_event_stop_test, currently_stepping): Update.
1713 (currently_stepping_or_nexting_callback): Update.
1714
6aa27652
YQ
17152011-09-07 Yao Qi <yao@codesourcery.com>
1716
1717 * gdbthread.h (struct thread_info): Comment on field
1718 `step_after_step_resume_breakpoint'.
1719
00db5b94
PA
17202011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
1721
1722 * remote.c (remote_console_output): Reindent.
1723
861152be
LM
17242011-09-06 Luis Machado <lgustavo@codesourcery.com>
1725
1726 * frame.c (has_stack_frames): Check for currently selected
1727 traceframe.
1728
ab821bc6
PA
17292011-09-06 Pedro Alves <pedro@codesourcery.com>
1730
1731 * event-top.h (MAXPROMPTS, struct prompts): Delete.
1732 (set_async_annotation_level, set_async_prompt, pop_prompt)
1733 (push_prompt, new_async_prompt): Delete declarations.
1734 * top.h (get_prompt, set_prompt): Change prototype.
1735 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1736 declarations.
1737 * top.c (command_loop):
1738 (top_prompt): New global.
1739 (get_prefix, set_prefix, get_suffix, ): Delete.
1740 (get_prompt, set_prompt): Rewrite.
1741 (show_new_async_prompt): Rename to ...
1742 (show_prompt): ... this.
1743 (init_main): Adjust. Don't handle --annotate=2 here.
1744 * event-top.c (new_async_prompt): Delete.
1745 (the_prompts): Delete.
1746 (more_to_come): Make static.
1747 (display_gdb_prompt): Use top_level_prompt() to compute the top
1748 level prompt, and don't notify the before_prompt observers
1749 directly here. Always trick readline into not trying to display
1750 the prompt if sync_execution and displaying the primary prompt.
1751 If displaying a local/secondary prompt, always show it, even if
1752 sync_execution is set.
1753 (change_annotation_level): Delete.
1754 (top_level_prompt): New, based on change_annotation_level.
1755 (push_prompt, pop_prompt): Delete.
1756 (async_disable_stdin): No longer pushes prompt.
1757 (command_line_handler): No longer pushes or pops prompt. If more
1758 input is expected, call display_gdb_prompt with an explicit empty
1759 prompt.
1760 (async_stop_sig): Adjust.
1761 (set_async_annotation_level, set_async_prompt): Delete.
1762 * python/python.c (before_prompt_hook): Adjust.
1763
f1d90504
PA
17642011-09-05 Pedro Alves <pedro@codesourcery.com>
1765
1766 PR cli/13110
1767
1768 * infrun.c (fetch_inferior_event): Check if there's a selected
1769 thread before checking if the selected thread is executing.
1770
0f641c01
PA
17712011-09-05 Pedro Alves <pedro@codesourcery.com>
1772
1773 * inf-loop.c (execute_command): Don't check if the current thread
1774 if running before synchronously waiting for command completion.
1775 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1776 here.
1777 (normal_stop): Call async_enable_stdin here.
1778 * inf-loop.c (inferior_event_handler): Don't call
1779 async_enable_stdin, nor handle "set exec-done-display" here.
1780
30368258 17812011-09-04 Joel Brobecker <brobecker@adacore.com>
1782
1783 GDB 7.3.1 released.
1784
31916278
JB
17852011-09-04 Joel Brobecker <brobecker@adacore.com>
1786
1787 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1788
e8d56f18
JB
17892011-09-04 Joel Brobecker <brobecker@adacore.com>
1790
1791 * NEWS: Add entry for OpenBSD/NetBSD build failure.
1792
5dd05d8c
JK
17932011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1796
7d8e6458 17972011-09-02 Matt Rice <ratmice@gmail.com>
1798
1799 PR gdb/10720
1800 * event-top.c (cli_command_loop): Replace readline setup with
1801 direct call to display_gdb_prompt.
1802 (display_gdb_prompt): Do not call observer mechanism during
1803 synchronous execution.
1804
84636d28
PA
18052011-09-02 Pedro Alves <pedro@codesourcery.com>
1806
1807 * linux-nat.c (in_pid_list_p): New.
1808 (linux_record_stopped_pid): Delete.
1809 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1810 already attached to the LWP. Return an indication if so.
1811 (linux_nat_filter_event): Adjust.
1812 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1813 returning an indication to ignore this thread.
1814
b4a14fd0
PA
18152011-09-02 Pedro Alves <pedro@codesourcery.com>
1816
1817 * top.c: Include interps.h.
1818 (execute_command): If the target can async, but the interpreter is
1819 in sync mode, synchronously wait for the command to finish before
1820 returning.
1821 (execute_command_to_string): Force the interpreter to sync mode.
1822 * infrun.c: Include interps.h.
1823 (fetch_inferior_event): Don't restore the prompt yet if the
1824 interpreter is in sync mode.
1825 * interps.c (interpreter_async): New global.
1826 * interps.h (interpreter_async): Declare.
1827 * inf-loop.c: Include interps.h.
1828 (inferior_event_handler): Don't print the language change or run
1829 breakpoint commands yet if the interpreter in is sync mode.
1830 * main.c (captured_command_loop): Flip the interpreter to async
1831 mode.
1832 * cli/cli-script.c: Include interps.h.
1833 (execute_user_command, while_command, if_command): Force the
1834 interpreter to sync mode.
1835 * python/python.c: Include interps.h.
1836 (python_command, execute_gdb_command): Force the interpreter to
1837 sync mode.
1838
c709acd1
PA
18392011-09-02 Pedro Alves <pedro@codesourcery.com>
1840
1841 * value.c (show_convenience): Catch errors thrown while printing
1842 each internal variable.
1843 * infrun.c (validate_siginfo_access): New function.
1844 (siginfo_value_read, siginfo_value_write): Call it.
1845
9655e943
JK
18462011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 Revert:
1849 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1850 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1851 attribute.
1852
cb457ae2
YQ
18532011-08-29 Yao Qi <yao@codesourcery.com>
1854
1855 * solib-dsbt.c (bfd_lookup_symbol): Removed.
1856 (cmp_name): New.
1857 (enable_break2): Update caller.
1858 * solib-frv.c (bfd_lookup_symbol): Removed.
1859 (cmp_name): New.
1860 (enable_break2): Update caller.
1861 * solib-pa64.c (bfd_lookup_symbol): Removed.
1862 (cmp_name): New.
1863 * solib-svr4.c (bfd_lookup_symbol): Removed.
1864 (cmp_name_and_sec_flags): New.
1865 (enable_break): Update caller.
1866 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1867 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1868 (gdb_bfd_lookup_symbol): New.
1869 * solib.h: Functions declarations.
1870
83d1a36a
YQ
18712011-08-29 Yao Qi <yao@codesourcery.com>
1872
1873 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1874 and solib-dsbt.o.
1875
c04b3e8f
JK
18762011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1877
1878 Fix TUI stepi on code without symbols.
1879 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1880 current PC instead.
1881
cb0fd152
JK
18822011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 Code cleanup.
1885 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1886 and the static keyword.
1887 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1888 Make prefix an array.
1889 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1890 * mi/mi-main.c (get_register): Remove stb initialization and the static
1891 keyword.
1892
91174723
JK
18932011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
1895 Code cleanup - make mi_opt const.
1896 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1897 opts const.
1898 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1899 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1900 (mi_cmd_env_dir): Likewise.
1901 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1902 (mi_cmd_target_file_put): Likewise.
1903 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1904 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1905 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1906 (mi_valid_noargs): Make opts const.
1907 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1908 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1909 (mi_cmd_data_read_memory): Likewise.
1910 (mi_cmd_data_read_memory_bytes): Likewise.
1911 (mi_cmd_data_write_memory): Likewise.
1912
5068b8e8 19132011-08-26 Matt Rice <ratmice@gmail.com>
1914
1915 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1916 bcache_xmalloc, replace bcache_xmalloc with call to
1917 psymbol_bcache_init for psymbol_cache.
1918 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1919
a4f2ce05
JK
19202011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 * inf-loop.c (inferior_event_handler): Add exception_print in
1923 INF_EXEC_COMPLETE.
1924
353d1d73
JK
19252011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1928 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1929 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1930 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1931 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1932 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1933 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1934 * infrun.c (fetch_inferior_event): Call
1935 make_bpstat_clear_actions_cleanup.
1936 * top.c (execute_command): New variable cleanup_if_error, call
1937 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1938 * utils.c (do_bpstat_clear_actions_cleanup)
1939 (make_bpstat_clear_actions_cleanup): New functions.
1940
3ced3da4
PA
19412011-08-26 Pedro Alves <pedro@codesourcery.com>
1942
1943 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1944 either the parent or the child forks. Rename a couple locals.
1945
a9f4bb21
PA
19462011-08-26 Pedro Alves <pedro@codesourcery.com>
1947
1948 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1949 library call. Avoid reading the `status' local if all waitpid
1950 calls failed.
1951
e5798bef
PA
19522011-08-26 Pedro Alves <pedro@codesourcery.com>
1953
1954 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1955 opening /proc/PID/task always succeeds.
1956
edb2aadf
AR
19572011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
1958
1959 * linespec.c (symtab_from_filename): Check for the end of string.
1960
0d932b2f
MK
19612011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
1962
1963 PR mi/11912
1964 * varobj.c (cplus_describe_child): Add the keyword
1965 'class' to the output of the method when dealing
1966 with a cast to a base class.
1967
e93ca019
JK
19682011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 No functionality change.
1971 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1972 function comment a reference, new variables tp and bs, move here code
1973 from throw_exception.
1974 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1975 describe it in the comment.
1976 * exceptions.c (throw_exception): Remove variable tp, move the code for
1977 bpstat_clear_actions to bpstat_clear_actions.
1978
13da1c97
LM
19792011-08-24 Luis Machado <lgustavo@codesourcery.com>
1980
1981 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1982 * linux-nat.c: Include linux-procfs.h.
1983 (linux_proc_get_tgid): Move to ...
1984 * common/linux-procfs.c: ... here. New file.
1985 * common/linux-procfs.h: New file.
1986 * linux-thread-db.c: Include linux-procfs.h.
1987 * Makefile.in: Update dependencies.
1988 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1989 * config/arm/linux.mh: Likewise.
1990 * config/i386/linux.mh: Likewise.
1991 * config/i386/linux64.mh: Likewise.
1992 * config/ia64/linux.mh: Likewise.
1993 * config/m32r/linux.mh: Likewise.
1994 * config/m68k/linux.mh: Likewise.
1995 * config/mips/linux.mh: Likewise.
1996 * config/pa/linux.mh: Likewise.
1997 * config/pa/linux.mh: Likewise.
1998 * config/powerpc/linux.mh: Likewise.
1999 * config/powerpc/ppc64-linux.mh: Likewise.
2000 * config/powerpc/spu-linux.mh: Likewise.
2001 * config/sparc/linux.mh: Likewise.
2002 * config/sparc/linux64.mh: Likewise.
2003 * config/xtensa/linux.mh: Likewise.
2004
4e5c165d
HZ
20052011-08-24 Hui Zhu <teawater@gmail.com>
2006
2007 * tracepoint.c (cond_string_is_same): New function.
2008 (find_matching_tracepoint): Add condition check
2009 by cond_string_is_same.
2010
6e2f5b22
JK
20112011-08-23 Josh Matthews <josh@joshmatthews.net>
2012
2013 Fix build error in Darwin port.
2014 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2015
abf85f46
JK
20162011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 Code cleanup.
2019 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2020 (command_line_is_silent): New function.
2021 (bpstat_do_actions_1): No longer use commands_left, use
2022 command_line_is_silent for commands.
2023 (bpstat_alloc): Remove clearing of commands_left.
2024 (bpstat_stop_status): Remove initialization of commands_left, use
2025 command_line_is_silent.
2026 * breakpoint.h (struct bpstats): Remove commands_left.
2027
3a93a0c2
KS
20282011-08-18 Keith Seitz <keiths@redhat.com>
2029
2030 PR c++/12266
2031 * cp-name-parser.y (struct demangle_info): Remove unused
2032 member PREV.
2033 (d_grab): Likewise.
2034 (allocate_info): Change return type to struct demangle_info *.
2035 Always allocate a new demangle_info.
2036 Remove unused PREV pointer.
2037 (cp_new_demangle_parse_info): New function.
2038 (cp_demangled_name_parse_free): New function.
2039 (do_demangled_name_parse_free_cleanup): New function.
2040 (make_cleanup_cp_demangled_name_parse_free): New function.
2041 (cp_demangled_name_to_comp): Change return type to
2042 struct demangle_parse_info *.
2043 Allocate a new storage for each call.
2044 (main): Update usage for cp_demangled_name_to_comp
2045 API change.
2046 * cp-support.h (struct demangle_parse_info): New structure.
2047 (cp_demangled_name_to_comp): Update API change for
2048 return type.
2049 (cp_new_demangle_parse_info): Declare.
2050 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2051 (cp_demangled_name_parse_free): Declare.
2052 * cp-support.c (cp_canonicalize_string): Update API
2053 change for cp_demangled_name_to_comp.
2054 (mangled_name_to_comp): Likewise.
2055 Return struct demangle_parse_info, too.
2056 (cp_class_name_from_physname): Update mangled_name_to_comp
2057 API change.
2058 (method_name_from_physname): Likewise.
2059 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2060 (cp_remove_params): Likewise.
2061 * python/py-type.c (typy_legacy_template_argument): Likewise.
2062
2063 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2064 (cp_merge_demangle_parse_infos): Declare.
2065 * cp-support.c (ignore_typedefs): New file global.
2066 (copy_string_to_obstack): New function.
2067 (inspect_type): New function.
2068 (replace_typedefs): New function.
2069 (replace_typedefs_qualified_name): New function.
2070 (cp_canonicalize_string_no_typedefs): New function.
2071 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2072 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2073 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2074 instead of cp_canonicalize_string.
2075 (find_method): Likewise.
2076 (decode_compound): Before looking up the name, call
2077 cp_canonicalize_string_no_typedefs.
2078 (decode_variable): Likewise.
2079
fa3a4f15
PM
20802011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2081 Tom Tromey <tromey@redhat.com>
2082 Matt Rice <ratmice@gmail.com>
2083
2084 * python/lib/gdb/prompt.py: New file.
2085 * python/lib/gdb/command/prompt.py: New file.
2086 * NEWS: Document set extended-prompt and gdb.prompt library
2087
85661b1e
YQ
20882011-08-16 Yao Qi <yao@codesourcery.com>
2089
2090 * tic6x-linux-tdep.c: Move const arrays definition from here...
2091 * tic6x-tdep.c: to here ...
2092
11315641
YQ
20932011-08-14 Yao Qi <yao@codesourcery.com>
2094
2095 * NEWS: New port to Texas Instruments TMS320C6x.
2096
8cd64e00
YQ
20972011-08-14 Andrew Jenner <andrew@codesourcery.com>
2098 Bernd Schmidt <bernds@codesourcery.com>
2099 Yao Qi <yao@codesourcery.com>
2100
2101 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2102 * solib-dsbt.c: New file. Support DSBT shared object.
2103 * tic6x-linux-tdep.c: New file.
2104 * tic6x-tdep.c: New file.
2105 * tic6x-tdep.h: New file.
2106
78d85199
YQ
21072011-08-14 Andrew Stubbs <ams@codesourcery.com>
2108 Yao Qi <yao@codesourcery.com>
2109
2110 * remote.c (PACKET_qXfer_fdpic): New enum value.
2111 (remote_protocol_features): Add qXfer:fdpic:read packet.
2112 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2113 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2114 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2115
224bbe49
YQ
21162011-08-14 Yao Qi <yao@codesourcery.com>
2117
2118 Target description for tic6x.
2119 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2120 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2121 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2122 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2123 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2124 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2125 * features/tic6x-c64xp-linux.xml: New.
2126 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2127 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2128 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2129 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2130 * regformats/tic6x-c64xp.dat,
2131 regformats/tic6x-c62x-linux.dat: Generated.
2132 * regformats/tic6x-c64x-linux.dat,
2133 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2134 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2135 features/tic6x-*.c files.
2136 Add regformats/tic6x-*.dat files.
2137
457e09f0
DE
21382011-08-12 Doug Evans <dje@google.com>
2139
2140 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2141 * python/py-symbol.c (sympy_get_type): New function.
2142 (symbol_object_getset): Add "type".
2143
d20c1c3f
PA
21442011-08-12 Pedro Alves <pedro@codesourcery.com>
2145
2146 PR tui/13073
2147
2148 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2149 empty name.
2150 (tui_show_register_group): Don't store a byte buffer in the data
2151 element's value.
2152 (tui_register_format): Skip registers with an empty name.
2153 (tui_get_register): Store a struct value in the data element's
2154 value field instead of a byte buffer holding the raw register
2155 contents. Account for optimized-out and unavailable registers
2156 when comparing register contents.
2157
9d8fa392
PA
21582011-08-09 Pedro Alves <pedro@codesourcery.com>
2159
2160 * printcmd.c (current_display_number): Update comment.
2161 (disable_current_display_cleanup): Delete.
2162 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2163 catch errors thrown while evaluating and printing the display.
2164
401a70b8
TT
21652011-08-09 Tom Tromey <tromey@redhat.com>
2166
2167 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2168
7f86f058
PA
21692011-08-09 Pedro Alves <pedro@codesourcery.com>
2170
94b71cca 2171 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2172 * maint.c (maintenance_command): Ditto.
2173 * somread.c (som_symtab_read): Ditto.
2174 * solib.c (solib_find, solib_map_sections, update_solib_list)
2175 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2176 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2177 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2178 * solib-irix.c (locate_base, disable_break, enable_break)
2179 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2180 (irix_current_sos, irix_open_symbol_file_object)
2181 (irix_special_symbol_handling): Ditto.
2182 * solib-sunos.c (locate_base, first_link_map_member)
2183 (sunos_current_sos, disable_break, enable_break)
2184 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2185 Ditto.
2186 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2187 (open_symbol_file_object, svr4_current_sos, enable_break)
2188 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2189 Ditto.
2190 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2191 (frv_current_sos, enable_break, frv_special_symbol_handling)
2192 (frv_solib_create_inferior_hook): Ditto.
2193 * solist.h (struct target_so_ops): Extend the comments of the
2194 special_symbol_handling, current_sos and open_symbol_file_object
2195 methods.
2196
5e239b84
PM
21972011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2198
2199 * python/lib/gdb/__init__.py: Auto-load files in command and
2200 function directories.
2201 * python/python.c (finish_python_initialization): Use
2202 os.path.join.
2203 * python/lib/gdb/command/pretty_printers.py: Self register
2204 command.
2205 * NEWS: Document auto-loading.
2206
b6cede78
JK
22072011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2210 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2211 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2212
29d0bb3d
TT
22132011-08-08 Tom Tromey <tromey@redhat.com>
2214
2215 * breakpoint.c (clean_up_filters): Remove.
2216 (catch_syscall_split_args): Use VEC_cleanup.
2217
2f7fb8e4
JK
22182011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2219
2220 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2221 (main): Uncomment "Demangling error\n".
2222
d6c10e95
PP
22232011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2224
2225 * solib-target.c (segment_attributes): Make them static.
2226 (section_attributes, library_children, library_attributes): Likewise.
2227 (library_list_children, library_list_attributes): Likesise.
2228 (library_list_elements): Likewise.
2229
af6e93b2
PA
22302011-08-05 Pedro Alves <pedro@codesourcery.com>
2231
2232 * exceptions.c (throw_exception): Don't disable the current
2233 display.
2234 * printcmd.c (disable_current_display_cleanup): New function.
2235 (do_one_display): Install a cleanup to disable the current display
2236 if doing the display throws.
2237
6a1b1664
EZ
22382011-08-05 Eli Zaretskii <eliz@gnu.org>
2239
2240 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2241 initialization of the tp_new member to the corresponding
2242 gdbpy_initialize_* function.
2243 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2244 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2245 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2246 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2247 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2248
31a0ae49
JK
22492011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2252 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2253 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2254 references to current_uiout.
2255
e0dd0826
PA
22562011-08-04 Pedro Alves <pedro@codesourcery.com>
2257
2258 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2259 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2260 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2261 * top.c (gdb_readline_wrapper): Adjust.
2262 * tui/tui-interp.c (tui_command_loop):
2263 (_initialize_tui_interp): Don't install it.
2264
79a45e25
PA
22652011-08-04 Pedro Alves <pedro@codesourcery.com>
2266
2267 * ui-out.h (uiout): Rename to ...
2268 (current_uiout): ... this.
2269 * ui-out.c (uiout): Rename to ...
2270 (current_uiout): ... this.
2271 * ada-lang.c (print_it_exception, print_one_exception)
2272 (print_mention_exception): Adjust.
2273 * breakpoint.c (watchpoint_check): Adjust.
2274 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2275 (default_collect_info, watchpoints_info, print_one_catch_fork)
2276 (print_one_catch_vfork, print_one_catch_syscall)
2277 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2278 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2279 (print_it_watchpoint, print_mention_watchpoint)
2280 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2281 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2282 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2283 (bkpt_print_mention, momentary_bkpt_print_it)
2284 (tracepoint_print_mention, update_static_tracepoint)
2285 (tracepoints_info, save_breakpoints): Adjust.
2286 * cli-out.c (field_separator): Adjust.
2287 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2288 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2289 * frame.c (get_current_frame): Adjust.
2290 * infcmd.c (run_command_1, print_return_value): Adjust.
2291 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2292 * infrun.c (print_end_stepping_range_reason): Adjust.
2293 (print_signal_exited_reason, print_exited_reason): Adjust.
2294 (print_signal_received_reason, print_no_history_reason): Adjust.
2295 * interps.c (interp_set): Adjust.
2296 * osdata.c (info_osdata_command): Adjust.
2297 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2298 * remote-fileio.c (remote_fileio_request): Adjust.
2299 * remote.c (show_remote_cmd): Adjust.
2300 * solib.c (info_sharedlibrary_command): Adjust.
2301 * source.c (print_source_lines_base): Adjust.
2302 * stack.c (print_stack_frame): Adjust.
2303 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2304 * symfile-mem.c (add_vsyscall_page): Adjust.
2305 * symfile.c (load_progress, generic_load)
2306 (print_transfer_performance): Adjust.
2307 * thread.c (info_threads_command, restore_selected_frame)
2308 (thread_command): Adjust.
2309 * top.c (make_cleanup_restore_ui_file): Adjust.
2310 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2311 (print_one_static_tracepoint_marker): Adjust.
2312 * cli/cli-cmds.c (print_disassembly): Adjust.
2313 * cli/cli-decode.c (print_doc_line): Adjust.
2314 * cli/cli-interp.c (safe_execute_command): Adjust.
2315 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2316 (handle_redirections): Adjust.
2317 * cli/cli-script.c (show_user_1): Adjust.
2318 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2319 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2320 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2321 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2322 (mi_cmd_env_dir): Adjust.
2323 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2324 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2325 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2326 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2327 (list_args_or_locals): Adjust.
2328 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2329 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2330 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2331 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2332 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2333 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2334 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2335 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2336 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2337 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2338 (list_available_thread_groups, mi_cmd_list_thread_groups)
2339 (mi_cmd_data_list_register_names)
2340 (mi_cmd_data_list_changed_registers)
2341 (mi_cmd_data_list_register_values, get_register)
2342 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2343 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2344 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2345 (mi_execute_command, mi_load_progress): Adjust.
2346 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2347 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2348 Adjust.
2349 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2350 * tui/tui-interp.c (tui_command_loop): Adjust.
2351 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2352
f9679975
PA
23532011-08-04 Pedro Alves <pedro@codesourcery.com>
2354
2355 * exceptions.c (struct catcher): Remove saved_uiout field.
2356 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2357 no longer save/resvore the global ui_out builder.
2358 (catch_exceptions_with_msg): Save/override/restore the global
2359 ui_out builder manually instead of relying on TRY_CATCH to do it.
2360 (catch_errors): Save/restore the global ui_out builder manually
2361 instead of relying on TRY_CATCH to do it.
2362 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2363 parameter.
2364 (TRY_CATCH): Adjust.
2365 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2366 the global ui_out builder manually instead of relying on TRY_CATCH
2367 to do it.
2368
934709f0
PW
23692011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2370
2371 * breakpoint.c (update_global_location_list): Ensure
2372 invariant 'first loc marked not duplicated and inserted,
2373 following locs marked duplicated/not inserted' is respected
2374 for multiple locations at the same address.
2375 (unduplicated_should_be_inserted) New function.
2376 (swap_insertion) New function.
2377
2421fe6f
JK
23782011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 * stack.c (print_frame_arguments_choices): Comment typo fix.
2381
3fbb6ffa
TJB
23822011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2383
2384 Revert:
2385 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2386 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2387 argument. Update callers.
2388
fbe12357
PP
23892011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2390
2391 PR gdb/13045
2392 * doublest.c (convert_doublest_to_floatformat): Pass correct
2393 mantissa length to put_field.
2394
b1d288d3
JK
23952011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2396
2397 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2398 exception_print code path.
2399 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2400 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2401 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2402
311b5970
JK
24032011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2404
2405 Code cleanup.
2406 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2407 Remove, merge them into ...
2408 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2409 variable args and its initialization.
2410 (struct print_args_args, print_args_stub): Remove, merge them into
2411 print_frame.
2412 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2413 them into ...
2414 (do_gdb_disassembly): ... here. Remove variable args and its
2415 initialization.
2416 (print_frame): Remove variable args and its initialization, new
2417 variable gdbarch and numargs (from print_args_stub), inline here
2418 print_args_stub with a TRY_CATCH.
2419 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2420 them into ...
2421 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2422 New variable e, remove variable btargs and its initialization.
311b5970 2423
484a26a8
TG
24242011-08-01 Tristan Gingold <gingold@adacore.com>
2425
2426 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2427
c30eee59
TJB
24282011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2429
2430 * breakpoint.c (insert_bp_location): Document return value.
2431 (insert_breakpoint_locations): Fix documentation.
2432 (remove_breakpoints): Add documentation.
2433
f116073b
TJB
24342011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2435
2436 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2437 argument. Update callers.
2438
65aa373f
JK
24392011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2440
2441 * stack.c (print_frame_info): Comment typo fix.
2442
a50242fb
SA
24432011-07-29 Sterling Augustine <saugustine@google.com>
2444
2445 * MAINTAINERS (Write After Approval): Add myself to the list.
2446
267f6504
TT
24472011-07-29 Tom Tromey <tromey@redhat.com>
2448
2449 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2450 (library_list_start_segment): Update.
2451 (library_list_start_section): Update.
2452
00bd41d6
PM
24532011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2454
2455 * varobj.c (value_get_print_value): Move hint check later into the
2456 function. Comment function. Free thevalue before reusing it.
2457
18a46dbe
JK
24582011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 Pedro Alves <pedro@codesourcery.com>
2460
2461 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2462 value_one.
2463 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2464 Assert the result kind.
2465 * value.h (value_one): Remove parameter lv.
2466
bb7da2bf
JK
24672011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2468
2469 Fix crash on lval_computed values.
2470 * valops.c (value_zero): Use not_lval for lval_computed.
2471
2d5213f8
TT
24722011-07-27 Tom Tromey <tromey@redhat.com>
2473
2474 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2475 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2476
11081198
JK
24772011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2478
2479 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2480 "ptype" by their typedefs difference.
2481
3c6e0cb3
JK
24822011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2483
2484 * dwarf2expr.c (ctx_no_read_reg): New function.
2485 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2486 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2487 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2488 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2489
523f3620
JK
24902011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2491
2492 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2493 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2494 file.
2495 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2496 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2497 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2498 (ctx_no_get_base_type): Move the functions here.
2499 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2500 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2501 (ctx_no_get_base_type): New declarations.
2502
24d3216f
TT
25032011-07-27 Tom Tromey <tromey@redhat.com>
2504
2505 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2506 entries.
2507 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2508 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2509
5005c8a9
PP
25102011-07-26 Sterling Augustine <saugustine@google.com>
2511
2512 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2513 ULONGEST.
2514 (dump_bfd_file): Likewise.
2515
480a3f21
PW
25162011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2517
2518 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2519 (remote_hw_watchpoint_length_limit): New variable.
2520 (_initialize_remote) add set,show cmds for this new variable.
2521 * gdb.texinfo: document these new commands.
2522 * NEWS: Mention these new commands.
2523
efa80663
PA
25242011-07-26 Pedro Alves <pedro@codesourcery.com>
2525
2526 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2527 true for software watchpoints.
2528
dbdaa232 25292011-07-26 Joel Brobecker <brobecker@adacore.com>
2530
2531 GDB 7.3 released.
2532
cf2c3c16
TT
25332011-07-26 Tom Tromey <tromey@redhat.com>
2534
2535 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2536 * dwarf2read.c (read_indirect_string_at_offset): New function.
2537 (read_indirect_string): Use it.
2538 (dwarf_decode_macro_bytes): New function, taken from
2539 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2540 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2541 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2542 New functions.
2543 (struct dwarf2_per_objfile) <macro>: New field.
2544 (dwarf2_elf_names): Add .debug_macro.
2545 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2546 (dwarf2_locate_sections): Handle new section.
2547 (read_file_scope): Handle DW_AT_GNU_macros.
2548 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2549
1a532630
PP
25502011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2551
2552 * NEWS: Mention dcache configuration.
2553 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2554 (dcache_size, dcache_line_size): New variables.
2555 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2556 (struct dcache_block): Make it expandable.
2557 (struct dcache_struct): New field.
2558 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2559 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2560 (dcache_poke_byte, dcache_print_line): Adjust.
2561 (set_dcache_size, set_dcache_line_size): New functions.
2562 (set_dcache_command, show_dcache_command): New functions.
2563 (_initialize_dcache): Add new commands.
2564
2eff07b3
PP
25652011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2566
2567 * progspace.h (struct program_space): Add solib_add_generation.
2568 * infcmd.c (post_create_inferior): Only call solib_add if not
2569 already done.
2570 * solib.c (solib_add): Increment solib_add_generation.
2571
543305c9
JK
25722011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2573
2574 Fix implicit pointer offsets.
2575 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2576 ptr.OFFSET.
2577
c0a91b2b
TT
25782011-07-25 Tom Tromey <tromey@redhat.com>
2579
2580 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2581 const.
2582 (ada_exception_sal): Make 'ops' const.
2583 (ada_decode_exception_location): Likewise.
2584 (ada_decode_assert_location): Likewise.
2585 (catch_assert_command): Update.
2586 (catch_ada_exception_command): Update.
2587 (create_ada_exception_catchpoint): Make 'ops' const.
2588 * breakpoint.c (set_raw_breakpoint_without_location)
2589 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2590 const.
2591 (create_internal_breakpoint): Update.
2592 (init_raw_breakpoint_without_location): Make 'ops' const.
2593 (init_raw_breakpoint, init_catchpoint)
2594 (create_fork_vfork_event_catchpoint)
2595 (create_syscall_event_catchpoint, init_breakpoint_sal)
2596 (create_breakpoint_sal, create_breakpoints_sal)
2597 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2598 * breakpoint.h (struct breakpoint) <ops>: Now const.
2599 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2600 const.
2601
6cb9b55b
PP
26022011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2603
2604 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2605
d9b3f62e
PA
26062011-07-25 Pedro Alves <pedro@codesourcery.com>
2607
2608 * breakpoint.h (print_recreate_thread): Declare.
2609 (struct breakpoint): Move step_count, pass_count,
2610 number_on_target, static_trace_marker_id,
2611 static_trace_marker_id_idx ...
2612 (struct tracepoint): ... to this new struct.
2613 (get_tracepoint, get_tracepoint_by_number_on_target)
2614 (get_tracepoint_by_number): Change return type to struct
2615 tracepoint pointer.
2616 * breakpoint.c (is_tracepoint_type): New, factored out from
2617 is_tracepoint.
2618 (is_tracepoint): Adjust.
2619 (print_one_breakpoint_location): Cast to struct tracepoint as
2620 necessary, and adjust.
2621 (print_recreate_catch_fork, print_recreate_catch_vfork)
2622 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2623 print_recreate_thread.
2624 (init_breakpoint_sal): New, factored out from
2625 create_breakpoint_sal.
2626 (create_breakpoint_sal): Reimplement.
2627 (create_breakpoint): Allocate a struct tracecepoint if the caller
2628 wanted a tracepoint. Use init_breakpoint_sal and
2629 install_breakpoint.
2630 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2631 (print_recreate_masked_watchpoint)
2632 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2633 (tracepoint_print_one_detail): Adjust.
2634 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2635 Dump the pass count here.
2636 (update_static_tracepoint): Adjust.
2637 (addr_string_to_sals): Adjust.
2638 (create_tracepoint_from_upload): Adjust. Change return type to
2639 struct tracepoint pointer.
2640 (trace_pass_set_count): Change parameter type to struct tracepoint
2641 pointer, and adjust.
2642 (trace_pass_command): Adjust.
2643 (get_tracepoint, get_tracepoint_by_number_on_target)
2644 (get_tracepoint_by_number): Change return type to struct
2645 tracepoint pointer, and adjust.
2646 (print_recreate_thread): New, factored out from save_breakpoints.
2647 (save_breakpoints): Don't print thread and task and passcount
2648 recreation here.
2649 * remote.c (remote_download_tracepoint): Adjust.
2650 * tracepoint.c (trace_actions_command, validate_actionline)
2651 (start_tracing, tfind_1, trace_find_tracepoint_command)
2652 (trace_dump_command): Adjust.
2653 (find_matching_tracepoint): Change return type to struct
2654 tracepoint pointer, and adjust.
2655 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2656 (tfile_trace_find, tfile_fetch_registers): Adjust.
2657 * tracepoint.h (create_tracepoint_from_upload): Change return type
2658 to struct tracepoint pointer.
2659 * ada-lang.c (print_recreate_exception): Call
2660 print_recreate_thread.
2661 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2662
3a5c3e22
PA
26632011-07-25 Pedro Alves <pedro@codesourcery.com>
2664
2665 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2666 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2667 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2668 watchpoint_thread, watchpoint_triggered ...
2669 (struct watchpoint): ... to this new struct.
2670 (is_watchpoint): Declare.
2671 (install_breakpoint): Add new `internal' parameter.
2672 * breakpoint.c (is_watchpoint): Delete declaration.
2673 (set_breakpoint_condition): Handle watchpoints.
2674 (is_watchpoint): Make public.
2675 (watchpoint_in_thread_scope): Change parameter type to struct
2676 watchpoint.
2677 (watchpoint_del_at_next_stop): Change parameter type to struct
2678 watchpoint. Remove assertion. Adjust.
2679 (update_watchpoint): Ditto.
2680 (insert_breakpoints, breakpoint_init_inferior)
2681 (watchpoints_triggered, watchpoint_check)
2682 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2683 (bpstat_stop_status, print_one_breakpoint_location)
2684 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2685 to struct watchpoint as necessary, and adjust.
2686 (install_breakpoint): Add `internal' argument. If true, don't
2687 mention the new breakpoint. Use set_breakpoint_number.
2688 (create_fork_vfork_event_catchpoint)
2689 (create_syscall_event_catchpoint): Adjust.
2690 (dtor_watchpoint): New.
2691 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
2692 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2693 (print_it_watchpoint, print_mention_watchpoint)
2694 (print_recreate_watchpoint, insert_masked_watchpoint)
2695 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2696 (print_one_detail_masked_watchpoint)
2697 (print_mention_masked_watchpoint)
2698 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2699 necessary, and adjust.
2700 (watch_command_1): Allocate and initialize a struct watchpoint
2701 instead of a struct breakpoint. Use install_breakpoint.
2702 (catch_exec_command_1): Adjust.
2703 (base_breakpoint_dtor): Delete accesses to watchpoint specific
2704 fields.
2705 (delete_breakpoint, enable_breakpoint_disp)
2706 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2707 as necessary, and adjust.
2708 (initialize_breakpoint_ops): Install dtor_watchpoint as
2709 watchpoints' dtor method.
2710 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2711 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2712 to struct watchpoint as necessary, and adjust.
2713
2060206e
PA
27142011-07-25 Pedro Alves <pedro@codesourcery.com>
2715
2716 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2717 the the base class ops table.
2718 (catch_exception_breakpoint_ops)
2719 (catch_exception_unhandled_breakpoint_ops)
2720 (catch_assert_breakpoint_ops): Don't statically initialize.
2721 (initialize_ada_catchpoint_ops): New.
2722 (_initialize_ada_language): Call it.
2723 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2724 (bkpt_breakpoint_ops): Forward declare.
2725 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2726 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2727 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2728 (masked_watchpoint_breakpoint_ops)
2729 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2730 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2731 base class ops table.
2732 (null_re_set, null_check_status, null_works_in_software_mode)
2733 (null_resources_needed, null_print_one_detail): Delete.
2734 (bkpt_dtor): Rename to ...
2735 (base_breakpoint_dtor): ... this. Make static.
2736 (bkpt_allocate_location): Rename to ...
2737 (base_breakpoint_allocate_location): ... this. Make static.
2738 (base_breakpoint_re_set): New.
2739 (internal_error_pure_virtual_called): New.
2740 (base_breakpoint_insert_location, base_breakpoint_remove_location)
2741 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2742 (base_breakpoint_works_in_software_mode)
2743 (base_breakpoint_resources_needed, base_breakpoint_print_it)
2744 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2745 (base_breakpoint_print_recreate): New functions.
2746 (base_breakpoint_ops): New global.
2747 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2748 (bkpt_breakpoint_hit): Make static.
2749 (bkpt_check_status): Delete.
2750 (bkpt_resources_needed): Make static.
2751 (bkpt_works_in_software_mode): Delete.
2752 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2753 static.
2754 (bkpt_breakpoint_ops, internal_breakpoint_ops)
2755 (momentary_breakpoint_ops): Don't statically initialize.
2756 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2757 Delete.
2758 (tracepoint_insert_location, tracepoint_remove_location)
2759 (tracepoint_check_status, tracepoint_works_in_software_mode)
2760 (tracepoint_print_it): Delete.
2761 (tracepoint_breakpoint_ops): Don't statically initialize.
2762 (initialize_breakpoint_ops): New.
2763 (_initialize_breakpoint): Call it.
2764 * breakpoint.h (null_re_set, null_works_in_software_mode)
2765 (null_resources_needed, null_check_status, null_print_one_detail):
2766 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2767 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2768 (bkpt_check_status, bkpt_resources_needed)
2769 (bkpt_works_in_software_mode, bkpt_print_it)
2770 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2771 Delete declarations.
2772 (initialize_breakpoint_ops): Declare.
2773
001c8c33
PA
27742011-07-25 Pedro Alves <pedro@codesourcery.com>
2775
2776 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2777 (momentary_bkpt_print_it): Simplify.
2778
06edf0c0
PA
27792011-07-25 Pedro Alves <pedro@codesourcery.com>
2780
2781 Split internal, momentary and user breakpoints breakpoint_ops
2782 tables.
2783
2784 * breakpoint.c (internal_breakpoint_ops)
2785 (momentary_breakpoint_ops): Forward declare.
2786 (create_internal_breakpoint): Add new breakpoint_ops parameter.
2787 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2788 (create_overlay_event_breakpoint)
2789 (create_std_terminate_master_breakpoint)
2790 (create_exception_master_breakpoint): Create breakpoints with
2791 internal_breakpoint_ops vtable.
2792 (set_longjmp_breakpoint): Create momentary breakpoints with
2793 momentary_breakpoint_ops vtable, using
2794 momentary_breakpoint_from_master.
2795 (create_thread_event_breakpoint, create_jit_event_breakpoint)
2796 (create_solib_event_breakpoint): Create breakpoints with
2797 internal_breakpoint_ops vtable.
2798 (set_momentary_breakpoint): Create breakpoints with
2799 momentary_breakpoint_ops vtable.
2800 (momentary_breakpoint_from_master): New, factored out from
2801 clone_momentary_breakpoint.
2802 (clone_momentary_breakpoint): Adjust.
2803 (watch_command_1): Create scope breakpoints with
2804 momentary_breakpoint_ops vtable.
2805 (bkpt_re_set): Remove handling of internal and momentary
2806 breakpoints.
2807 (bkpt_print_mention, bkpt_print_recreate): New.
2808 (bkpt_breakpoint_ops): Adjust.
2809 (internal_bkpt_re_set, internal_bkpt_check_status)
2810 (internal_bkpt_print_it, internal_bkpt_print_mention)
2811 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2812 (momentary_bkpt_re_set, momentary_bkpt_check_status)
2813 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2814 (momentary_bkpt_print_recreate): New.
2815 (momentary_breakpoint_ops): New.
2816
348d480f
PA
28172011-07-25 Pedro Alves <pedro@codesourcery.com>
2818
2819 Implement most breakpoint_ops methods for all breakpoint types,
2820 and move the default handlings to the proper callbacks.
2821
2822 * breakpoint.c (update_watchpoint): Always call the breakpoint's
2823 works_in_software_mode method.
2824 (insert_bp_location): Go through breakpoint_ops->insert_location
2825 for software and hardware watchpoints.
2826 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2827 breakpoint_ops.
2828 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2829 for software and hardware watchpoints.
2830 (print_it_typical): Delete.
2831 (print_bp_stop_message): Always call the breakpoint_ops->print_it
2832 method.
2833 (watchpoint_check): Adjust comment.
2834 (bpstat_check_location): Simply always call the breakpoint's
2835 breakpoint_hit method.
2836 (bpstat_stop_status): Always call the breakpoint's check_status
2837 method. Remove special cases for watchpoints and internal event
2838 breakpoints from here (moved to the check_status implementations).
2839 (print_one_breakpoint_location): Assume b->ops is never NULL.
2840 Remove static tracepoint marker id printing from here (moved to
2841 the print_one_detail callback implementation of tracepoints).
2842 (init_bp_location): Assert OPS is never NULL.
2843 (allocate_bp_location): Always call the breakpoint's
2844 allocate_location method, and remove the default code from here.
2845 (free_bp_location): Always call the location's dtor method, and
2846 remove the default code from here.
2847 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2848 (set_raw_breakpoint_without_location): Add new breakpoint_ops
2849 parameter. Pass it down.
2850 (set_raw_breakpoint): Ditto.
2851 (print_it_catch_fork): Adjust to take a bpstat as argument.
2852 (catch_fork_breakpoint_ops): Install methods.
2853 (print_it_catch_vfork): Adjust to take a bpstat as argument.
2854 (catch_vfork_breakpoint_ops): Install methods.
2855 (dtor_catch_syscall): Call the base dtor.
2856 (print_it_catch_syscall): Adjust to take a bpstat as argument.
2857 (catch_syscall_breakpoint_ops): Install methods.
2858 (dtor_catch_exec): Call the base dtor.
2859 (print_it_catch_exec): Adjust to take a bpstat as argument.
2860 (catch_exec_breakpoint_ops): Install methods.
2861 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2862 the breakpoint's resources_needed method, and remove the default
2863 code from here.
2864 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2865 breakpoint_ops.
2866 (clone_momentary_breakpoint): Clone the original's ops.
2867 (mention): Always call the breakpoint's print_mention method, and
2868 remove the default code from here.
2869 (create_breakpoint_sal): Adjust to pass the ops to
2870 set_raw_breakpoint rather than setting it manually.
2871 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
2872 ops to set_raw_breakpoint_without_location rather than setting it
2873 manually.
2874 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2875 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2876 (ranged_breakpoint_ops): Install methods.
2877 (break_range_command): Adjust to pass the ops to
2878 set_raw_breakpoint rather than setting it manually.
2879 (re_set_watchpoint, breakpoint_hit_watchpoint)
2880 (check_status_watchpoint, resources_needed_watchpoint)
2881 (works_in_software_mode_watchpoint, print_it_watchpoint)
2882 (print_mention_watchpoint, print_recreate_watchpoint): New
2883 functions.
2884 (watchpoint_breakpoint_ops): Install new methods.
2885 (print_it_masked_watchpoint): New function.
2886 (masked_watchpoint_breakpoint_ops): Install new methods.
2887 (watch_command_1): Adjust to pass the right breakpoint_ops to
2888 set_raw_breakpoint_without_location rather than setting it
2889 manually later. Record the current pspace.
2890 (print_it_exception_catchpoint): Adjust to take a bpstat as
2891 argument.
2892 (gnu_v3_exception_catchpoint_ops): Install new methods.
2893 (say_where): New function.
2894 (null_re_set, null_check_status, null_works_in_software_mode)
2895 (null_resources_needed, null_print_one_detail, bp_location_dtor):
2896 New functions.
2897 (bp_location_ops): New global.
2898 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2899 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2900 (bkpt_check_status, bkpt_resources_needed)
2901 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2902 (bkpt_print_recreate): New functions.
2903 (bkpt_breakpoint_ops): New global.
2904 (tracepoint_re_set, tracepoint_insert_location)
2905 (tracepoint_remove_location, tracepoint_breakpoint_hit)
2906 (tracepoint_check_status, tracepoint_works_in_software_mode)
2907 (tracepoint_print_it, tracepoint_print_one_detail)
2908 (tracepoint_print_mention, tracepoint_print_recreate): New
2909 functions.
2910 (tracepoint_breakpoint_ops): New global.
2911 (delete_breakpoint): Always call the breakpoint's dtor method, and
2912 remove the default handling from here.
2913 (breakpoint_re_set_default): Make static.
2914 (breakpoint_re_set_one): Always call the breakpoints re_set
2915 method, and remove the default handling from here.
2916 (trace_command, ftrace_command, strace_command)
2917 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2918 to create_breakpoint.
2919 (save_breakpoints): Always call the breakpoint's print_recreate
2920 method, and remove the default handling from here.
2921
2922 * ada-lang.c (dtor_exception): Call the base dtor.
2923 (re_set_exception): Call the base method.
2924 (print_it_exception, print_it_catch_exception): Adjust to take a
2925 bpstat as argument.
2926 (catch_exception_breakpoint_ops): Install methods.
2927 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2928 argument.
2929 (catch_exception_unhandled_breakpoint_ops): Install methods.
2930 (print_it_catch_assert): Adjust to take a bpstat as argument.
2931 (catch_assert_breakpoint_ops): Install methods.
2932
2933 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2934 to take a bpstat as argument.
2935 (enum print_stop_action): Add describing comments to each enum
2936 value.
2937 (breakpoint_re_set_default): Delete declaration.
2938 (null_re_set, null_works_in_software_mode, null_resources_needed)
2939 (null_check_status, null_print_one_detail): Declare.
2940 (bkpt_breakpoint_ops): Declare.
2941 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2942 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2943 (bkpt_check_status, bkpt_resources_needed)
2944 (bkpt_works_in_software_mode, bkpt_print_it)
2945 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2946 Declare.
2947
2948 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2949 bkpt_breakpoint_ops.
2950 * python/py-breakpoint.c (bppy_init): Ditto.
2951
be8f8133
PW
29522011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2953
2954 * MAINTAINERS (Write After Approval): Add myself to the list.
2955
3807f613
PP
29562011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
2957
2958 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2959
1ced966e
PA
29602011-07-22 Pedro Alves <pedro@codesourcery.com>
2961
2962 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2963 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2964 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2965 adjust.
2966 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2967 (struct i386_debug_reg_state): New.
2968 (i386_init_dregs): New.
2969 (dr_mirror): New.
2970 (i386_cleanup_dregs): Use i386_init_dregs.
2971 (i386_show_dr): Add state parameter and adjust.
2972 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
2973 the inferior here.
2974 (i386_remove_aligned_watchpoint): Likewise.
2975 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2976 (i386_update_inferior_debug_regs): New.
2977 (i386_insert_watchpoint): Work on a local mirror of the debug
2978 registers, and only update the inferior on success.
2979 (i386_remove_watchpoint): Ditto.
2980 (i386_region_ok_for_watchpoint): Adjust.
2981 (i386_stopped_data_address): Adjust.
2982 (i386_insert_hw_breakpoint): Adjust.
2983 (i386_remove_hw_breakpoint): Adjust.
2984
3543a589
TT
29852011-07-22 Tom Tromey <tromey@redhat.com>
2986
2987 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2988 from amd64_pseudo_register_read. Change arguments. Call
2989 mark_value_bytes_unavailable when needed.
2990 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2991 set_gdbarch_pseudo_register_read.
2992 * sentinel-frame.c (sentinel_frame_prev_register): Use
2993 regcache_cooked_read_value.
2994 * regcache.h (regcache_cooked_read_value): Declare.
2995 * regcache.c (regcache_cooked_read_value): New function.
2996 (regcache_cooked_read): Call
2997 gdbarch_pseudo_register_read_value if available.
2998 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2999 (i386_pseudo_register_read): Remove.
3000 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3001 i386_pseudo_register_read. Change arguments. Call
3002 mark_value_bytes_unavailable when needed.
3003 (i386_pseudo_register_read_value): New function.
3004 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3005 not set_gdbarch_pseudo_register_read.
3006 * gdbarch.sh (pseudo_register_read_value): New method.
3007 * gdbarch.c, gdbarch.h: Rebuild.
3008 * findvar.c (value_from_register): Call get_frame_register_value.
3009
95298e72
PM
30102011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3011
3012 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3013 get_prefix.
3014 (display_gdb_prompt): Likewise.
3015 (change_annotation_level): Likewise.
3016 (push_prompt): Likewise.
3017 (pop_prompt): Likewise.
3018 (handle_stop_sig): Use get_prompt with a level.
3019 * top.c (command_loop): Use get_prompt with a level.
3020 (set_async_annotation_level): Use set_prompt with a level.
3021 (get_prefix): New function.
3022 (set_prefix): Ditto.
3023 (set_suffix): Ditto.
3024 (get_suffix): Ditto.
3025 (get_prompt): Accept a level argument.
3026 (set_prompt): Accept a level argument. Free old prompts. Set
3027 new_async_prompt if level is 0.
3028 (init_main): Use set_prompt with a level. Do not set
3029 new_async_prompt.
3030 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3031 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3032 Modify set_prompt, get_prompt to account for levels.
3033 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3034 level.
3035 * python/python.c (before_prompt_hook): Use set_prompt.
3036
d26e3629
KY
30372011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3038
3039 * defs.h: Add guard against inclusion in gdbserver.
3040 (struct ptid, ptid_t): Move to common/ptid.h.
3041 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3042 xsnprintf, internal_error): Move to common/common-utils.h.
3043 (nomem): Delete.
3044 * gdb_assert.h: Move into common/ sub-directory.
3045 * gdb_locale.h: Ditto.
3046 * gdb_dirent.h: Ditto.
3047 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3048 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3049 Move into common/ptid.h.
3050 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3051 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3052 Change nomem to malloc_failure.
3053 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3054 * utils.c (nomem): Rename to malloc_failure.
3055 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3056 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3057 (gdb_buildargv): Change nomem to malloc_failure.
3058 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3059 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3060 ptid_is_pid): Move into common/ptid.c.
3061 (initialize_infrun): Delete initialization of null_ptid and
3062 minus_one_ptid.
3063 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3064 linux_common_xfer_osdata.
3065 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3066 common/ptid.c and common/buffer.c.
3067 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3068 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3069 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3070 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3071 rules.
3072 * common/gdb_assert.h: New.
3073 * common/gdb_dirent.h: New.
3074 * common/gdb_locale.h: New.
3075 * common/buffer.c: New.
3076 * common/buffer.h: New.
3077 * common/ptid.c: New.
3078 * common/ptid.h: New.
3079 * common/xml-utils.c: New.
3080 * common/xml-utils.h: New.
3081 * common/common-utils.c: New.
3082 * common/common-utils.h: New.
3083 * common/linux-osdata.c: New.
3084 * common/linux-osdata.h: New.
3085 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3086 * config/arm/linux.mh (NATDEPFILES): Ditto.
3087 * config/i386/linux.mh (NATDEPFILES): Ditto.
3088 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3089 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3090 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3091 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3092 * config/mips/linux.mh (NATDEPFILES): Ditto.
3093 * config/pa/linux.mh (NATDEPFILES): Ditto.
3094 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3095 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3096 * config/s390/s390.mh (NATDEPFILES): Ditto.
3097 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3098 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3099 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3100
edc84990 31012011-07-21 Matt Rice <ratmice@gmail.com>
3102
3103 * NEWS: Add info macros and info definitions commands.
3104
3a7bf607
PM
31052011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3106
3107 * NEWS: Document Python prompt substitution hook.
3108
9b158ba0 31092011-07-18 Matt Rice <ratmice@gmail.com>
3110
3111 PR macros/12999
3112 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3113 * macrotab.c (foreach_macro): Ditto.
3114 (foreach_macro_in_scope): Ditto.
3115 * macrocmd.c (print_macro_callback): New function.
3116 (info_macro_command): Move some code to print_macro_definition.
3117 (print_macro_definition): New function.
3118 (print_one_macro): Add new arguments to callback.
3119 (info_definitions_command): New function.
3120 (info_macros_command): Ditto.
3121 (_initialize_macrocmd): Add info macros and info definitions commands.
3122 * symtab.c (add_macro_name): Add new arguments to callback.
3123
d17b6f81
PM
31242011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3125 Tom Tromey <tromey@redhat.com>
3126
3127 * top.c (set_prompt): Rewrite to free previous prompt, free
3128 asynch_new_prompt and set both on new prompts.
3129 * event-top.c (display_gdb_prompt): Add prompt substitution
3130 logic.
3131 * python/python.c (before_prompt_hook): New function.
3132
1364323a 31332011-07-20 Matt Rice <ratmice@gmail.com>
3134
3135 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3136 arguments to store_unsigned_integer.
3137
8b70b953
TT
31382011-07-20 Tom Tromey <tromey@redhat.com>
3139
6c83ed52
TT
3140 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3141 in some declaration-only cases.
3142
31432011-07-18 Tom Tromey <tromey@redhat.com>
3144
8b70b953
TT
3145 PR symtab/12984:
3146 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3147 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3148 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3149 <debug_type_section>: New field.
3150 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3151 (load_cu): Use appropriate section.
3152 (create_signatured_type_table_from_index): Add 'section'
3153 argument.
3154 (dwarf2_read_index): Only allow a single .debug_types section.
3155 (dw2_get_file_names): Use appropriate section.
3156 (read_type_comp_unit_head): Add 'section' argument.
3157 (create_debug_types_hash_table): Loop over all .debug_types
3158 sections.
3159 (init_cu_die_reader): Use appropriate section.
3160 (process_psymtab_comp_unit, load_partial_comp_unit)
3161 (load_full_comp_unit, read_die_and_children, find_partial_die)
3162 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3163 (lookup_signatured_type_at_offset): Add 'section' argument.
3164 (read_signatured_type_at_offset): Add 'sect' argument.
3165 (read_signatured_type): Use appropriate section.
3166 (set_die_type, get_die_type_at_offset): Update.
3167 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3168 VEC.
3169 (write_psymtabs_to_index): Don't allow index with more than one
3170 .debug_types section.
3171
918dd910
JK
31722011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3173
3174 Fix crash if referenced CU is aged out.
3175 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3176 xfree of block.data.
3177 (indirect_pieced_value): New variable back_to, use to for xfree of
3178 baton.data.
3179 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3180 block.data.
3181 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3182 (load_cu): New function from ...
3183 (dw2_do_instantiate_symtab): ... the code here ...
3184 (process_full_comp_unit): ... and here.
3185 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3186 retval.data.
3187
0e37a63c
JK
31882011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3191 type.
3192
7e324e48
GB
31932011-07-19 Gary Benson <gbenson@redhat.com>
3194
3195 * infrun.c (struct execution_control_state): New member
3196 stop_func_filled_in.
3197 (clear_stop_func, fill_in_stop_func): New functions.
3198 (handle_inferior_event): Call clear_stop_func rather than
3199 manipulating the execution control state directly.
3200 Call fill_in_stop_func lazily as required rather than
3201 directly calling find_pc_partial_function in all cases.
3202
d48323d8
TT
32032011-07-18 Tom Tromey <tromey@redhat.com>
3204
3205 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3206 checking for variable-sized array.
3207
40591b7d
JCD
32082011-07-18 Jean-Charles Delay <delay@adacore.com>
3209
3210 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3211 of supported languages.
3212 * varobj.c: Add top definitions and basic implementation of the
3213 following callbacks: ada_number_of_children, ada_name_of_variable,
3214 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3215 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3216 (languages): Register Ada-specific callbacks.
3217 (variable_language): Add the Ada case in the language setter switch.
3218
2e424e08
JK
32192011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3220
3221 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3222
9e8b7a03
JK
32232011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Code cleanup.
3226 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3227 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3228 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3229 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3230 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3231 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3232 (struct dwarf_expr_context_funcs): New, move here methods from ...
3233 (struct dwarf_expr_context): ... here. New fields funcs.
3234 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3235 (dwarf_expr_ctx_funcs): New.
3236 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3237 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3238 (needs_frame_ctx_funcs): New.
3239 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3240
2b1260ab
FM
32412011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3242
3243 * MAINTAINERS (Write After Approval): Add myself to the list.
3244
8bd90839
FM
32452011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3246
3247 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3248 that CIE pointer of an FDE really points to a CIE .
3249
953b98d1
HZ
32502011-07-15 Hui Zhu <teawater@gmail.com>
3251
3252 * remote.c (remote_get_trace_status): Add comments.
3253
c8f2448a
JK
32542011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3255
3256 Code cleanup - constify struct lval_funcs.
3257 * dwarf2loc.c (pieced_value_funcs): Make it const.
3258 * infrun.c (siginfo_value_funcs): Likewise.
3259 * opencl-lang.c (opencl_value_funcs): Likewise.
3260 * valops.c (value_assign, value_ind): Make the funcs variable const.
3261 * value.c (struct value): Make location.computed.funcs target const.
3262 Rearrange the comments.
3263 (allocate_computed_value): Make the funcs parameter target const.
3264 (value_computed_funcs): Return the funcs target const.
3265 (value_free, value_copy, set_value_component_location): Make the funcs
3266 variable const.
3267 * value.h (allocate_computed_value): Make the funcs parameter target
3268 const.
3269 (value_computed_funcs): Return the funcs target const.
3270 * windows-tdep.c (tlb_value_funcs): Make it const.
3271
f652de6f
HZ
32722011-07-14 Hui Zhu <teawater@gmail.com>
3273
3274 * remote.c (remote_get_trace_status): Initialize p.
3275
67f41397
JK
32762011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 Work around kgdb.
3279 * remote.c (remote_get_trace_status): New variable ex. Put
3280 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3281
d1b66e6d
TT
32822011-07-13 Tom Tromey <tromey@redhat.com>
3283
3284 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3285 value_from_contents for final conversion.
3286
1632a688
JK
32872011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3288
3289 Code cleanup.
3290 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3291 Indent prototypes so they do not get into tags.
3292
a7035dbb
JK
32932011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3294
3295 Code cleanup making also optimized out values lazy.
3296 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3297 allocate_optimized_out_value. Twice.
3298 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3299 * findvar.c (read_var_value): Likewise.
3300 * value.c (allocate_optimized_out_value): New function.
3301 * value.h (allocate_optimized_out_value): New declaration.
3302
d07ed419
JK
33032011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3304
3305 Fix occasional crash of CTRL-C during DWARF read in.
3306 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3307
86d31898
TT
33082011-07-11 Tom Tromey <tromey@redhat.com>
3309
3310 * regcache.c (struct regcache_descr): Fix typo.
3311 * i387-tdep.c (i387_supply_xsave): Fix typo.
3312
2ab95328
TT
33132011-07-11 Tom Tromey <tromey@redhat.com>
3314
3315 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3316 (read_file_scope, read_type_unit_scope): Use it.
3317
04ad99e6
JK
33182011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3319
3320 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3321 `int'.
3322
713389e0
PM
33232011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3324
3325 PR python/12438
3326 * python/python.c: Set gdbpy_should_print_stack default to off.
3327 (set_python): Deprecate maint set python print-stack to
3328 class_deprecate.
3329 (_initialize_python): Deprecate maint set/show python print-stack.
3330 Add new prefix command, python. Add new setting, print-backtrace.
3331 * NEWS: Document set python print-stack. Document default change.
3332
754eadd1
PM
33332011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3334
3335 * python/py-inferior.c (infpy_dealloc): New function.
3336 (inferior_to_inferior_object): Return a new object, or a
3337 new reference to the existing object.
3338 (find_thread_object): Cleanup references to inferior.
3339 (delete_thread_object): Ditto.
3340 * python/py-infthread.c (create_thread_object): Do not increment
3341 inferior reference count.
3342
5e44ecb3
TT
33432011-07-08 Tom Tromey <tromey@redhat.com>
3344
3345 * dwarf2loc.c (locexpr_regname): New function.
3346 (locexpr_describe_location_piece): Use it.
3347 (disassemble_dwarf_expression): Add per_cu argument. Use
3348 locexpr_regname.
3349 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3350 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3351 New cases.
3352 (locexpr_describe_location_1): Add per_cu argument.
3353 (locexpr_describe_location): Update.
3354 (loclist_describe_location): Update.
3355
e0e9434c
TT
33562011-07-08 Tom Tromey <tromey@redhat.com>
3357
3358 * dwarf2expr.c (execute_stack_op): Add QUIT.
3359
26afc0d7
HZ
33602011-07-07 Hui Zhu <teawater@gmail.com>
3361
3362 Revert:
3363 2011-07-06 Hui Zhu <teawater@gmail.com>
3364 * remote.c (remote_start_remote): Add TRY_CATCH for
3365 remote_get_trace_status.
3366 * tracepoint.c (disconnect_tracing): Ditto.
3367
a40a111f
AB
33682011-07-07 Andrew Burgess <aburgess@broadcom.com>
3369
3370 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3371 variables as signed, not unsigned.
3372
e2bd3b15
JB
33732011-07-06 Joel Brobecker <brobecker@adacore.com>
3374
3375 * jit.c (jit_inferior_init): Reformat forward declaration.
3376
e3d961fe 33772011-07-06 Matt Rice <ratmice@gmail.com>
3378
3379 * MAINTAINERS (Write After Approval): Add myself to the list.
3380
0f3428f0
HZ
33812011-07-06 Hui Zhu <teawater@gmail.com>
3382
3383 * remote.c (remote_start_remote): Add TRY_CATCH for
3384 remote_get_trace_status.
3385 * tracepoint.c (disconnect_tracing): Ditto.
3386
fc9f3a69
TT
33872011-07-05 Tom Tromey <tromey@redhat.com>
3388
3389 * symtab.c (operator_chars): Now static.
3390 * linespec.c (operator_chars): Don't declare.
3391
26e519b9
TJB
33922011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3393
3394 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3395
eb2a6f42
TT
33962011-07-05 Tom Tromey <tromey@redhat.com>
3397
3398 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3399 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3400 (TYPE_CPLUS_REALLY_JAVA): New macro.
3401 * dwarf2read.c (process_structure_scope): Set
3402 TYPE_CPLUS_REALLY_JAVA.
3403
21083d0f 34042011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3405
3406 * ada-lang.c: Fix typos.
3407 * amd64-tdep.c: Likewise.
3408 * breakpoint.c: Likewise.
3409 * cli/cli-decode.c: Likewise.
3410 * findcmd.c: Likewise.
3411 * inline-frame.c: Likewise.
3412 * mi/mi-main.c: Likewise.
3413 * minsyms.c: Likewise.
3414 * monitor.c: Likewise.
3415 * monitor.h: Likewise.
3416 * prologue-value.c: Likewise.
3417 * reverse.c: Likewise.
3418 * s390-tdep.c: Likewise.
3419
3b2a0cf2
JB
34202011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3421
3422 * jit.c (jit_inferior_init): Forward declare.
3423 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3424
efae1d92
JB
34252011-07-04 Joel Brobecker <brobecker@adacore.com>
3426
3427 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3428
6040a59d
JB
34292011-07-04 Tristan Gingold <gingold@adacore.com>
3430
3431 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3432 (tcb_fieldno): Add activation_link field.
3433 (get_known_tasks_addr): Moved and rewritten.
3434 (get_tcb_types_info): Set activation_link field.
3435 (read_known_tasks_array): Add parameter. Rewritten.
3436 (read_known_tasks_list): New function.
3437 (read_known_tasks): New function.
3438 (ada_build_task_list): Call read_known_tasks instead of
3439 read_known_tasks_array.
3440 * ravenscar-thread.c: Add first_task_name constant.
3441 (has_ravenscar_runtime): Check for task list too.
3442
cb741e45
JB
34432011-07-04 Tristan Gingold <gingold@adacore.com>
3444
3445 * ada-tasks.c: Renames fieldno to actb_fieldno.
3446 (ada_get_task_number): Indentation.
3447 (get_tcb_types_info): Remove all parameters. Write directly
3448 the globals.
3449 (ptid_from_atcb_common): Adjust.
3450 (read_atcb): Adjust.
3451
7475b06c
TJB
34522011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3453
3454 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3455
15230f37
TJB
34562011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3457
3458 * ui-out.c (ui_out_field_core_addr): Mention that the function
3459 description is in the header file.
3460 * ui-out.h (ui_out_field_core_addr): Document function.
3461
65743aba
TJB
34622011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3463
3464 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3465 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3466
c37a5aab
TJB
34672011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3468
3469 * symtab.c (expand_line_sal): Remove empty line.
3470
59adf69e
TS
34712011-07-04 Thomas Schwinge <thomas@schwinge.name>
3472
3473 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3474 same way as ELFOSABI_NONE.
3475 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3476
e5dd4106
TJB
34772011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3478
3479 * breakpoint.c: Fix typos in comments.
3480 * linespec.c: Likewise.
3481 * symtab.c: Likewise.
3482
d40102a1
JB
34832011-07-04 Joel Brobecker <brobecker@adacore.com>
3484
3485 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3486 section in separate object files.
3487
2f741504
JK
34882011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 Fix false GCC warning.
3491 * linespec.c (decode_line_1): Initialize values.
3492
418c7cf7
JK
34932011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3494
3495 * linespec.c (find_method): Accept the function type automatically only
3496 if it was specified with parameter types.
3497
3d50dd94
JK
34982011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3499
3500 Stop on first linespec terminator instead of eating what we can.
3501 * linespec.c (is_linespec_boundary): New function.
3502 (name_end): Remove function.
3503 (keep_name_info): New parameter on_boundary, replace the body.
3504 (decode_line_1): Provide the parameter to keep_name_info.
3505 (decode_compound): Likewise. Drop the trailing java return type
3506 handling. Twice.
3507
dcf9f4ab
JK
35082011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3509
3510 Fall back linespec to minimal symbols.
3511 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3512 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3513 (find_method, symbol_found): Change error to cplusplus_error.
3514
3f542ed1
JK
35152011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3516
bc68c4e5 3517 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3518
900e11f9
JK
35192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 Tom Tromey <tromey@redhat.com>
3521
3522 * dwarf2read.c (check_physname): New variable.
3523 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3524 (show_check_physname): New function.
3525 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3526
2301925d
JB
35272011-07-01 Joel Brobecker <brobecker@adacore.com>
3528
3529 * machoread.c (macho_symfile_read): Delete OBE comment.
3530
38947cca
JB
35312011-07-01 Joel Brobecker <brobecker@adacore.com>
3532
3533 * machoread.c (struct macho_oso_data): Delete.
3534 (current_oso): Delete.
3535 (macho_relocate_common_syms): New function, mostly extracted
3536 out of
3537 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3538 Remove code that sets and unset current_oso.
3539 (macho_symfile_relocate): Delete handling of common symbols,
3540 now moved to macho_relocate_common_syms.
3541
a7aa0d73
JB
35422011-07-01 Joel Brobecker <brobecker@adacore.com>
3543
3544 * darwin-nat.c (darwin_ptrace): Add documentation.
3545 Set errno to zero before calling ptrace. If ptrace returns
3546 -1 and errno is zero, then change then return zero.
3547 (darwin_kill_inferior): Issue a warning instead of triggering
3548 a failed assertion when the PT_KILL ptrace operations returned
3549 nonzero.
3550
5e9bc145
JB
35512011-07-01 Joel Brobecker <brobecker@adacore.com>
3552
3553 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3554 only when inf->private->no_ptrace.
3555
00eb2c4a
JB
35562011-07-01 Joel Brobecker <brobecker@adacore.com>
3557
3558 * ada-lang.c (print_it_exception): Print temporary catchpoints
3559 as "Temporary catchpoint".
3560 (print_mention_exception): Likewise.
3561
127c81bc
TT
35622011-07-01 Tom Tromey <tromey@redhat.com>
3563
3564 * jv-lang.c (java_language_defn): Use java_printchar,
3565 java_printstr.
3566 (java_get_encoding): New function.
3567 (java_emit_char): Use generic_emit_char.
3568 (java_printchar): New function.
3569 (java_printstr): Likewise.
3570
25552254
JB
35712011-07-01 Joel Brobecker <brobecker@adacore.com>
3572
3573 * ada-typeprint.c (print_record_type): If unable to decode
3574 the name of the parent type, use the encoded name.
3575
d2d43431
JB
35762011-07-01 Jean-Charles Delay <delay@adacore.com>
3577
3578 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3579 pointer to constrained packed array type output.
3580 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3581 packed array output.
3582
54ae186f
JB
35832011-07-01 Jean-Charles Delay <delay@adacore.com>
3584
3585 * ada-typeprint.c (print_array_type): removed if condition on show
3586 being negative for bounds printing.
3587
8f17729f
JB
35882011-07-01 Joel Brobecker <brobecker@adacore.com>
3589
3590 * ada-lang.c (ada_identical_enum_types_p): New function.
3591 (symbols_are_identical_enums): New function.
3592 (remove_extra_symbols): Do nothing if NSYMS < 2.
3593 Use symbols_are_identical_enums.
3594
f5aa6869
JB
35952011-07-01 Joel Brobecker <brobecker@adacore.com>
3596
3597 * ada-valprint.c (ada_value_print): Handle typedefs.
3598
8f465ea7
JB
35992011-07-01 Joel Brobecker <brobecker@adacore.com>
3600
3601 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3602
828292f2
JB
36032011-07-01 Eric Botcazou <ebotcazou@adacore.com>
3604
3605 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3606 (decode_constrained_packed_array): Likewise.
3607 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3608
18920c42
JB
36092011-07-01 Joel Brobecker <brobecker@adacore.com>
3610
3611 * ada-exp.y (convert_char_literal): Handle typedef types.
3612
c90092fe
JB
36132011-07-01 Joel Brobecker <brobecker@adacore.com>
3614
3615 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3616
f748fb40
TT
36172011-06-30 Tom Tromey <tromey@redhat.com>
3618
3619 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3620 * valops.c (find_overload_match): Call do_cleanups on early exit
3621 path.
3622 * solib.c (solib_find): Call do_cleanups on early exit path.
3623
3bb47e8b
TT
36242011-06-30 Tom Tromey <tromey@redhat.com>
3625
3626 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3627 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3628 return paths. Defer final do_cleanups until last return.
3629 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3630 early return.
3631
4727bad3
TT
36322011-06-30 Tom Tromey <tromey@redhat.com>
3633
3634 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3635
bb361dbf
AB
36362011-06-30 Andrew Burgess <aburgess@broadcom.com>
3637
3638 * MAINTAINERS (Write After Approval): Add myself to the list.
3639
e0d00bc7
JK
36402011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3641
3642 Disable epilogue unwinders on recent GCCs.
3643 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3644 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3645 * dwarf2read.c (process_full_comp_unit): Initialize
3646 EPILOGUE_UNWIND_VALID.
3647 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3648 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3649 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3650
4632c0d0
JK
36512011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3652
3653 Code cleanup - reformatting.
3654 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3655 (producer_is_gcc_ge_4): ... here, change the return value.
3656 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3657 interpretation.
3658
32019081
JK
36592011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3660
3661 Fix non-only rename list for Fortran modules import.
3662 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3663 cp_add_using_directive caller.
3664 (cp_add_using_directive): New parameter excludes, describe it. New
3665 variables ix and param. Compare if also excludes match. Allocate NEW
3666 with variable size, initialize EXCLUDES there.
3667 (cp_lookup_symbol_imports): New variable excludep, test
3668 current->EXCLUDES with it.
3669 * cp-support.h: Include vec.h.
3670 (struct using_direct): New field excludes, describe it.
3671 (DEF_VEC_P (const_char_ptr)): New.
3672 (cp_add_using_directive): New parameter excludes.
3673 * defs.h (const_char_ptr): New typedef.
3674 * dwarf2read.c (read_import_statement): New variables child_die,
3675 excludes and cleanups, read in excludes.
3676 (read_namespace): Adjust the cp_add_using_directive caller.
3677
70c622a3
JK
36782011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3679
3680 Code cleanup.
3681 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3682 negative comparisons.
3683
39c4d40a
TT
36842011-06-29 André Pönitz <andre.poenitz@nokia.com>
3685
3686 * mi/mi-main.c (mi_cmd_list_features): Emit
3687 breakpoint-notifications.
3688
3b2b8fea
TT
36892011-06-29 Tom Tromey <tromey@redhat.com>
3690
3691 PR fortran/10036:
3692 * valprint.h (generic_emit_char, generic_printstr): Declare.
3693 * valprint.c (wchar_printable, append_string_as_wide)
3694 (print_wchar): Move from c-lang.c.
3695 (generic_emit_char): New function; mostly taken from c_emit_char.
3696 (generic_printstr): New function; mostly taken from c_printstr.
3697 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3698 represented as arrays.
3699 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3700 type.
3701 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3702 identically to TYPE_CODE_INT.
3703 * f-lang.c (f_get_encoding): New function.
3704 (f_emit_char): Use generic_emit_char.
3705 (f_printchar): Replace comment.
3706 (f_printstr): Use generic_printstr.
3707 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3708 "character" types specially.
3709 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3710 for Fortran.
3711 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3712 Move to valprint.c
3713 (c_emit_char): Call generic_emit_char.
3714 (c_printstr): Call generic_printstr.
3715
168e6d44
GB
37162011-06-29 Gary Benson <gbenson@redhat.com>
3717
3718 * breakpoint.c (bpstat_what): Removed duplicated case.
3719
1c033f8c
TT
37202011-06-28 Tom Tromey <tromey@redhat.com>
3721
3722 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3723
5fe41fbf
TT
37242011-06-27 Tom Tromey <tromey@redhat.com>
3725
3726 * valops.c (find_overload_match): Call do_cleanups before early
3727 return.
3728 * top.c (execute_command): Call do_cleanups before early return.
3729 (command_loop): Likewise.
3730 * stack.c (backtrace_command): Make a null cleanup early. Don't
3731 conditionally call do_cleanups.
3732 * python/py-value.c (TRY_CATCH): Move cleanup handling into
3733 TRY_CATCH.
3734 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3735 so cleanups are always run.
3736 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3737 * findcmd.c (parse_find_args): Call do_cleanups on early return
3738 path.
3739 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3740 Don't conditionally call do_cleanups.
3741 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3742 later.
3743
e26bd57d
EB
37442011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3745
3746 * MAINTAINERS (Write After Approval): Use default email address.
3747
6c3097fc
JB
37482011-06-27 Joel Brobecker <brobecker@adacore.com>
3749
3750 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3751
369c397b
JB
37522011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3753
3754 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3755 saved_regs_mask and copied_regs_mask fields.
3756 (sparc_record_save_insn): New prototype.
3757 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3758 (sparc_record_save_insn): New function.
3759 (sparc_analyze_prologue): Add head comment. Recognize store insns
3760 of call-saved registers. Use OFFSET consistently. Recognize flat
3761 frames and cache their settings.
3762 (sparc32_skip_prologue): Handle flat frames.
3763 (sparc_frame_cache): Add frame_offset to the base address.
3764 (sparc32_frame_cache): Adjust to new frame description.
3765 (sparc32_frame_prev_register): Likewise.
3766 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3767 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3768 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3769 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3770 frame by calling sparc_record_save_insn.
3771 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3772 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3773 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3774
b315ab21
TG
37752011-06-27 Tristan Gingold <gingold@adacore.com>
3776
3777 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3778 field by map_addr and map_len.
3779 (dwarf2_read_section): Adjust for the new bfd_mmap api.
3780 (munmap_section_buffer): Likewise.
3781
ddd49eee
TT
37822011-06-24 Tom Tromey <tromey@redhat.com>
3783
3784 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3785 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3786 * python/python.c (gdbpy_parameter): Make 'arg' const.
3787 (execute_gdb_command): Likewise.
3788 (gdbpy_decode_line): Likewise. Copy it.
3789 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
3790 (gdbpy_write): Make 'arg' const.
3791 * python/py-type.c (typy_lookup_typename): Make 'type_name'
3792 const.
3793 (gdbpy_lookup_type): Likewise.
3794 * python/py-prettyprint.c (print_children): Make 'name' const.
3795 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
3796 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3797 Py_ssize_t.
3798 * python/py-function.c (fnpy_init): Make 'name' const.
3799 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
3800 (gdbpy_string_to_argv): Make 'input' const.
3801 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
3802 it.
3803 * gdbtypes.h (lookup_typename): Update.
3804 * gdbtypes.c (lookup_typename): Make 'name' const.
3805 (lookup_struct): Likewise.
3806 (lookup_union): Likewise.
3807 (lookup_enum): Likewise.
3808
5998129b
TT
38092011-06-24 Tom Tromey <tromey@redhat.com>
3810
3811 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3812 gdb_thread_db.h. Move all common/ entries to be together.
3813 (TAGS): Don't depend on DEPFILES.
3814
6e586cc5
YQ
38152011-06-23 Yao Qi <yao@codesourcery.com>
3816
3817 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3818 * remote.c (remote_start_remote): ... here.
3819 * monitor.c (monitor_open): ... here.
3820
86c3c1fc
AB
38212011-06-23 Andrew Burgess <aburgess@broadcom.com>
3822
3823 * gdbtypes.c (append_composite_type_field_aligned): Fix
3824 calculation of bit position based on alignment.
3825
28010a5d
PA
38262011-06-22 Pedro Alves <pedro@codesourcery.com>
3827
3828 * breakpoint.c (bpstat_stop_status): Call the check_status
3829 breakpoint_ops method.
3830 (print_one_breakpoint_location): Also print the condition for Ada
3831 exception catchpoints.
3832 (allocate_bp_location): New, factored out from
3833 allocate_bp_location.
3834 (allocate_bp_location): Adjust. Call the owner breakpoint's
3835 allocate_location method, if there is one.
3836 (free_bp_location): Call the locations's dtor method, if there is
3837 one.
3838 (init_raw_breakpoint_without_location): New breakpoint_ops
3839 parameter. Use it.
3840 (set_raw_breakpoint_without_location): Adjust.
3841 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
3842 (set_raw_breakpoint): Adjust.
3843 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3844 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3845 re_set and check_status methods.
3846 (init_catchpoint): Don't memset, initialize thread, addr_string
3847 and enable_state. Pass the ops down to init_raw_breakpoint.
3848 (install_catchpoint): Rename to ...
3849 (install_breakpoint): ... this, and make extern.
3850 (create_fork_vfork_event_catchpoint): Adjust.
3851 (catch_exec_breakpoint_ops): Install NULL allocate_location,
3852 re_set and check_status methods.
3853 (create_syscall_event_catchpoint): Adjust.
3854 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3855 (masked_watchpoint_breakpoint_ops): Install NULL
3856 allocate_location, re_set and check_status methods.
3857 (catch_exec_command_1): Adjust.
3858 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3859 re_set and check_status methods.
3860 (create_ada_exception_breakpoint): Rename to ...
3861 (init_ada_exception_breakpoint): ... this. Add a struct
3862 breakpoint parameter, and delete the exp_string, cond_string and
3863 cond parameters. Use init_raw_breakpoint, and don't install or
3864 mention the breakpoint yet. Don't clear breakpoint fields that
3865 init_raw_breakpoint already clears.
3866 (re_set_breakpoint): Delete, split into ...
3867 (breakpoint_re_set_default, prepare_re_set_context): ... these new
3868 functions.
3869 (breakpoint_re_set_one): Call the breakpoint's
3870 breakpoint_ops->re_set implementation, if there's one. Adjust.
3871 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3872 (struct bp_location_ops): New type.
3873 (struct bp_location): New field `ops'.
3874 (struct breakpoint_ops): New `allocate_location', `re_set' and
3875 `check_status' fields. Make `breakpoint_hit''s description match
3876 reality.
3877 (init_bp_location): Declare.
3878 (breakpoint_re_set_default): Declare.
3879 (create_ada_exception_breakpoint): Rename to ...
3880 (init_ada_exception_breakpoint): ... this. Add a struct
3881 breakpoint parameter, and delete the exp_string, cond_string and
3882 cond parameters.
3883 (install_breakpoint): Declare.
3884 * ada-lang.c: Include exceptions.h.
3885 <Ada exceptions description>: Update.
3886 (struct ada_catchpoint_location): New type.
3887 (ada_catchpoint_location_dtor): New function.
3888 (ada_catchpoint_location_ops): New global.
3889 (ada_catchpoint): New type.
3890 (create_excep_cond_exprs): New function.
3891 (dtor_exception, allocate_location_exception, re_set_exception)
3892 (should_stop_exception, check_status_exception): New functions.
3893 (print_one_exception, print_mention_exception)
3894 (print_recreate_exception): Adjust.
3895 (dtor_catch_exception, allocate_location_catch_exception)
3896 (re_set_catch_exception, check_status_catch_exception): New
3897 functions.
3898 (catch_exception_breakpoint_ops): Install them.
3899 (dtor_catch_exception_unhandled)
3900 (allocate_location_catch_exception_unhandled)
3901 (re_set_catch_exception_unhandled)
3902 (check_status_catch_exception_unhandled): New functions.
3903 (catch_exception_unhandled_breakpoint_ops): Install them.
3904 (dtor_catch_assert, allocate_location_catch_assert)
3905 (re_set_catch_assert, check_status_catch_assert): New functions.
3906 (catch_assert_breakpoint_ops): Install them.
3907 (ada_exception_catchpoint_p): Delete.
3908 (catch_ada_exception_command_split)
3909 (ada_exception_catchpoint_cond_string): Rename exp_string
3910 parameter to excep_string. Adjust.
3911 (ada_parse_catchpoint_condition): Delete.
3912 (ada_exception_sal): Rename the exp_string parameter to
3913 excep_string. Delete the cond_string and cond parameters.
3914 Adjust.
3915 (ada_decode_exception_location): Rename the exp_string parameter
3916 to excep_string. Delete the cond_string and cond parameters.
3917 Adjust.
3918 (create_ada_exception_catchpoint): New function.
3919 (catch_ada_exception_command, ada_decode_assert_location)
3920 (catch_assert_command): Adjust.
3921 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3922
9ac4176b
PA
39232011-06-22 Pedro Alves <pedro@codesourcery.com>
3924
3925 * ada-lang.c: Include arch-utils.h.
3926 (ada_decode_exception_location): Make static.
3927 (catch_ada_exception_command): Moved here from breakpoint.c.
3928 (ada_decode_assert_location): Make static.
3929 (catch_assert_command): Moved here from breakpoint.c.
3930 (_initialize_ada_lang): Install the exception and assert
3931 catchpoint commands here.
3932 * ada-lang.h (ada_decode_exception_location)
3933 (ada_decode_assert_location): Delete declarations.
3934 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3935 breakpoint.h.
3936 (create_ada_exception_breakpoint): Make extern.
3937 (catch_ada_exception_command, catch_assert_command): Moved to
3938 ada-lang.c.
3939 (add_catch_command): Make extern.
3940 (_initilize_breakpoint): Don't install the exception and assert
3941 catchpoint commands here.
3942 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3943 breakpoint.c
3944 (add_catch_command, create_ada_exception_breakpoint): Declare.
3945
c56053d2
PA
39462011-06-22 Pedro Alves <pedro@codesourcery.com>
3947
3948 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3949 the breakpoint to the breakpoint chain here.
3950 (set_raw_breakpoint_without_location): Add the breakpoint to the
3951 breakpoint chain here.
3952 (init_raw_breakpoint): Adjust comments.
3953 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3954 here.
3955 (init_catchpoint): Don't set the catchpoint's breakpoint number
3956 here.
3957 (install_catchpoint): New function.
3958 (create_fork_vfork_event_catchpoint)
3959 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3960 use install_catchpoint.
3961
d2f3fc74
PA
39622011-06-22 Pedro Alves <pedro@codesourcery.com>
3963
3964 * breakpoint.c (create_catchpoint_without_mention)
3965 (create_catchpoint): Delete.
3966
b4d90040
PA
39672011-06-22 Pedro Alves <pedro@codesourcery.com>
3968
3969 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3970 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3971 reference to exec_pathname.
3972 (struct exec_catchpoint): New type.
3973 (dtor_catch_exec): New function.
3974 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3975 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3976 (catch_exec_command_1): Adjust to use init_catchpoint.
3977 (delete_breakpoint): Remove reference to exec_pathname.
3978
be5c67c1
PA
39792011-06-22 Pedro Alves <pedro@codesourcery.com>
3980
3981 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3982 (struct breakpoint): Delete field `syscalls_to_be_caught'.
3983 * breakpoint.c (init_raw_breakpoint_without_location): Remove
3984 reference to syscalls_to_be_caught.
3985 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3986 NULL `dtor'.
3987 (struct syscall_catchpoint): New type.
3988 (dtor_catch_syscall): New function.
3989 (insert_catch_syscall, remove_catch_syscall)
3990 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3991 (print_recreate_catch_syscall): Adjust.
3992 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3993 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3994 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3995 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3996 (masked_watchpoint_breakpoint_ops)
3997 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3998 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3999 there is one. Remove references to syscalls_to_be_caught.
4000 (catching_syscall_number): Adjust.
4001 * ada-lang.c (catch_exception_breakpoint_ops)
4002 (catch_exception_unhandled_breakpoint_ops)
4003 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4004
e29a4733
PA
40052011-06-22 Pedro Alves <pedro@codesourcery.com>
4006
4007 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4008 field.
4009 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4010 reference to forked_inferior_pid.
4011 (struct fork_catchpoint): New type.
4012 (breakpoint_hit_catch_fork, print_it_catch_fork)
4013 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4014 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4015 (create_fork_vfork_event_catchpoint): Adjust to use
4016 init_catchpoint.
4017
346774a9
PA
40182011-06-22 Pedro Alves <pedro@codesourcery.com>
4019
4020 * breakpoint.c (add_to_breakpoint_chain)
4021 (init_raw_breakpoint_without_location): New functions, factored
4022 out from ...
4023 (set_raw_breakpoint_without_location): ... this one.
4024 (init_raw_breakpoint): New function, factored out from
4025 set_raw_breakpoint and adjusted to use
4026 init_raw_breakpoint_without_location.
4027 (set_raw_breakpoint): Adjust.
4028 (init_catchpoint): New function, factored out from
4029 create_catchpoint_without_mention and adjusted to use
4030 init_raw_breakpoint.
4031 (create_catchpoint_without_mention): Adjust.
4032
c38c4bc5
TT
40332011-06-22 Tom Tromey <tromey@redhat.com>
4034
4035 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4036 argument of 0 specially.
4037
b138ce37
YQ
40382011-06-22 Yao Qi <yao@codesourcery.com>
4039
4040 * infrun.c (handle_inferior_event): Remove write-only local variable
4041 `sw_single_step_trap_p'.
4042
03de6823
TT
40432011-06-20 Tom Tromey <tromey@redhat.com>
4044
4045 * symtab.c (lookup_language_this): End loop if block is NULL.
4046
66a17cb6
TT
40472011-06-17 Tom Tromey <tromey@redhat.com>
4048
4049 * valops.c (value_of_this): Use lookup_language_this.
4050 * symtab.h (lookup_language_this): Declare.
4051 * symtab.c (lookup_language_this): New function.
4052 (lookup_symbol_aux): Use lookup_language_this.
4053 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4054
7518bff5
TT
40552011-06-17 Tom Tromey <tromey@redhat.com>
4056
4057 * value.h (value_of_this): Update.
4058 (value_of_local): Remove.
4059 * valops.c (value_of_this): Rename from value_of_local. Change
4060 parameters.
4061 * p-exp.y (exp): Update.
4062 (variable): Likewise.
4063 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4064
aee28ec6
TT
40652011-06-17 Tom Tromey <tromey@redhat.com>
4066
4067 * valops.c (value_of_local): Complain if NAME is NULL.
4068 * std-operator.def (OP_OBJC_SELF): Remove.
4069 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4070 * objc-exp.y (name_not_typename): Use OP_THIS.
4071 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4072 name for "this".
4073 <OP_OBJC_SELF>: Remove.
4074 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4075
eed8f803
TG
40762011-06-16 Tristan Gingold <gingold@adacore.com>
4077
4078 * python/py-events.h (gdb_py_events): Make it extern.
4079 * python/py-evtregistry.c (gdb_py_events): Declare.
4080
864ac8a7
HZ
40812011-06-16 Hui Zhu <teawater@gmail.com>
4082
4083 * remote.c (remote_trace_set_readonly_regions): Add check for
4084 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4085 output warning.
4086
ef7e8358
UW
40872011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4088
4089 * arm-linux-tdep.c: Include "auxv.h".
4090 (AT_HWCAP): Define.
4091 (ARM_LINUX_SIZEOF_VFP): Define.
4092 (arm_linux_supply_vfp): New function.
4093 (arm_linux_collect_vfp): Likewise.
4094 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4095 (arm_linux_fpa_regset_sections): New variable.
4096 (arm_linux_vfp_regset_sections): Likewise.
4097 (arm_linux_core_read_description): New function.
4098 (arm_linux_init_abi): Install arm_linux_core_read_description and
4099 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4100 appropriate for the architecture.
4101 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4102 (tdesc_arm_with_m): Declare.
4103 (tdesc_arm_with_iwmmxt): Likewise.
4104 (tdesc_arm_with_vfpv2): Likewise.
4105 (tdesc_arm_with_vfpv3): Likewise.
4106 (tdesc_arm_with_neon): Likewise.
4107 * arm-linux-nat.c: Move features/*.c includes ...
4108 * arm-tdep.c: ... here.
4109 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4110 target description data structures ...
4111 * arm-tdep.c (_initialize_arm_tdep): ... here.
4112 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4113 HWCAP_VFPv3D16): Move definitions ...
4114 * arm-linux-tdep.h: ... here.
4115
c2fa21f1
HZ
41162011-06-15 Hui Zhu <teawater@gmail.com>
4117
4118 * remote.c (remote_trace_set_readonly_regions): Add a check for
4119 target_buf_size.
4120
dd707e8e
TT
41212011-06-14 Tom Tromey <tromey@redhat.com>
4122
4123 * coffread.c (coffread_objfile): Rename from current_objfile.
4124 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4125 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4126
86cc0029
TT
41272011-06-14 Tom Tromey <tromey@redhat.com>
4128
4129 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4130 (class_symtab): Remove.
4131 (jv_dynamics_progspace_key): New global.
4132 (jv_per_objfile_free): Reset program space data. Update assert.
4133 Don't clear globals.
4134 (get_dynamics_objfile): Use and set program space data.
4135 (get_java_class_symtab): Use get_dynamics_objfile.
4136 (add_class_symbol): Likewise.
4137 (java_link_class_type): Likewise.
4138 (java_object_type, jv_clear_object_type, set_java_object_type):
4139 Remove.
4140 (get_java_object_type): Update. Don't cache result.
4141 (is_object_type): Don't call set_java_object_type.
4142 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4143 initialize jv_dynamics_progspace_key.
4144
91a81f69
TT
41452011-06-14 Tom Tromey <tromey@redhat.com>
4146
4147 * symtab.h (current_objfile): Don't declare.
4148 * objfiles.h (current_objfile): Don't declare.
4149 * objfiles.c (current_objfile): Remove.
4150 * mdebugread.c (current_objfile): New file-scope global.
4151 * dbxread.c (current_objfile): New file-scope global.
4152 * coffread.c (current_objfile): New file-scope global.
4153
dc7eb48e
PA
41542011-06-13 Pedro Alves <pedro@codesourcery.com>
4155
4156 * top.h (line): Rename to ...
4157 (saved_command_line): ... this.
4158 (linesize): Rename to ...
4159 (saved_command_line_size): ... this.
4160 * top.c (line): Rename to ...
4161 (saved_command_line): ... this.
4162 (linesize): Rename to ...
4163 (saved_command_line_size): ... this.
4164 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4165 * event-top.c (command_line_handler): Adjust.
4166 * main.c (captured_main): Adjust.
4167
0d6c2135
MK
41682011-06-12 Mark Kettenis <kettenis@gnu.org>
4169
4170 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4171 get_frame_func instead of get_frame_pc to determine the code
4172 address used to construct the frame ID.
4173 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4174 (i386_epilogue_frame_this_id): Likewise.
4175 (i386_epilogue_frame_prev_register): New function.
4176 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4177 (i386_stack_tramp_frame_sniffer): Fix coding style.
4178 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4179 (i386_gdbarch_init): Fix comments.
4180
8bbdd3f4
MK
41812011-06-12 Mark Kettenis <kettenis@gnu.org>
4182
4183 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4184 instruction when walking back through the instruction stream.
4185
533a737e
JK
41862011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4189 fullname parameters order.
4190
44b13c5a
JK
41912011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 Code cleanup.
4194 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4195 for fun.
4196 * psymtab.c (map_symbol_filenames_psymtab)
4197 (map_partial_symbol_filenames): Likewise.
4198 * psymtab.h: Include symfile.h.
4199 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4200 * symfile.h (symbol_filename_ftype): New.
4201 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4202 map_symbol_filenames, clarify more the naming in comment.
4203
0b5574da
DE
42042011-06-07 Doug Evans <dje@google.com>
4205
4206 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4207 Look for ../../gdb, for fullname.exp.
0b5574da 4208
5be4dfca
JK
42092011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 Pedro Alves <pedro@codesourcery.com>
4211
4212 * cli/cli-cmds.c (shell_escape): Use waitpid.
4213 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4214
316a8b21
TG
42152011-06-07 Tristan Gingold <gingold@adacore.com>
4216
4217 * xcoffread.c (dwarf2_xcoff_names): New variable.
4218 (aix_process_linenos): Add a guard.
4219 (xcoff_symfile_finish): Free dwarf2.
4220 (xcoff_initial_scan): Add dwarf2 support.
4221
3dd5b83d
PA
42222011-06-06 Pedro Alves <pedro@codesourcery.com>
4223
4224 * infcall.c (run_inferior_call): Don't mask async. Instead force
4225 a synchronous wait, if the target can async.
4226
4227 * target.h (struct target_ops): Delete to_async_mask.
4228 (target_async_mask): Delete.
4229 * target.c (update_current_target): Delete references to to_async_mask.
4230 * linux-nat.c (linux_nat_async_mask_value): Delete.
4231 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4232 to linux_nat_async_mask_value.
4233 (linux_nat_async_mask): Delete.
4234 (linux_nat_async, linux_nat_close): Remove references to
4235 linux_nat_async_mask_value.
4236 * record.c (record_async_mask_value): Delete.
4237 (record_async): Remove references to record_async_mask_value.
4238 (record_async_mask): Delete.
4239 (record_can_async_p, record_is_async_p): Remove references to
4240 record_async_mask_value.
4241 (init_record_ops, init_record_core_ops): Remove references to
4242 record_async_mask.
4243 * remote.c (remote_async_mask_value): Delete.
4244 (init_remote_ops): Remove reference to remote_async_mask.
4245 (remote_can_async_p, remote_is_async_p): Remove references to
4246 remote_async_mask_value.
4247 (remote_async): Remove references to remote_async_mask_value.
4248 (remote_async_mask): Delete.
4249
4250 * infrun.c (fetch_inferior_event): Don't claim registers changed
4251 if the current thread is already not executing.
4252
64b9b334
JB
42532011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4254
4255 From Stephen Kitt <steve@sk2.org>
4256 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4257 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4258
325663dc
JB
42592011-06-03 Joel Brobecker <brobecker@adacore.com>
4260
4261 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4262 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4263
8cf64490
TT
42642011-06-03 Tom Tromey <tromey@redhat.com>
4265
4266 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4267 code fields.
4268 * python/py-exitedevent.c (create_exited_event_object): Change
4269 type of 'exit_code'. Optionally add exit_code attribute.
4270 (emit_exited_event): Change type of 'exit_code'.
4271 * python/py-event.h (emit_exited_event): Update.
4272 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4273 * infrun.c (handle_inferior_event): Set exit code fields on
4274 inferior.
4275 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4276 fields.
4277 * inferior.c (exit_inferior_1): Initialize new fields.
4278
8ddd9a20
TT
42792011-06-03 Tom Tromey <tromey@redhat.com>
4280
4281 * dwarf2expr.c (get_signed_type): New function.
4282 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4283
8dfd1e6d
KS
42842011-06-02 Keith Seitz <keiths@redhat.com>
4285
4286 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4287
65fdb766
PA
42882011-06-02 Pedro Alves <pedro@codesourcery.com>
4289
4290 * top.h (simplified_command_loop): Delete declaration.
4291
f4b8c29b
MF
42922011-06-01 Mike Frysinger <vapier@gentoo.org>
4293
4294 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4295 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4296
1706c199
YQ
42972011-06-01 Yao Qi <yao@codesourcery.com>
4298
4299 * objfiles.h (obj_section_addr): Update reference to objfile from
4300 `abfd' to `obfd'.
4301 (obj_section_endaddr): Likewise.
4302
d19cd713 43032011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4304
4305 * MAINTAINERS: Update my email address and affiliation. Also
4306 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4307
e8eb7bc5
KS
43082010-05-31 Keith Seitz <keiths@redhat.com>
4309
4310 PR c++/12750
4311 * linespec.c (get_search_block): New function.
4312 (find_methods): Add FILE_SYMTATB parameter and use it and
4313 get_search_block to pass an appropriate block to
4314 lookup_symbol_in_namespace.
4315 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4316 Check if *ARGPTR starts with a filename first.
4317 If it does, call locate_first_half again to locate the next
4318 "first half" of the linespec.
4319 Pass FILE_SYMTATB to decode_objc and decode_compound.
4320 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4321 (locate_first_half): Stop on the first colon seen.
4322 (decode_compound): Add FILE_SYMTAB parameter.
4323 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4324 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4325 get_search_block with lookup_symbol.
4326 (find_method): Add FILE_SYMTAB parameter and pass it to
4327 find_methods.
4328 (decode_objc): Use get_search_block.
4329
2b1dbab0
KS
43302010-05-31 Keith Seitz <keiths@redhat.com>
4331
4332 PR symtab/12704
4333 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4334 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4335 and CP_ANONYMOUS_NAMESPACE_LEN.
4336 (cp_is_anonymous): Likewise.
4337 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4338 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4339 * dwarf2read.c (namespace_name): Likewise.
4340 (fixup_partial_die): Likewise.
4341 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4342 seen in the input, keep it.
4343
6d549500
PA
43442011-05-30 Pedro Alves <pedro@codesourcery.com>
4345
4346 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4347 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4348 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4349 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4350 * remote.c (_initialize_remote): Register
4351 async_remote_interrupt_twice directly as
4352 sigint_remote_twice_token event.
4353
395bff70
PA
43542011-05-30 Pedro Alves <pedro@codesourcery.com>
4355
4356 * target.h (enum inferior_event_type): Delete INF_ERROR.
4357 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4358
97224164
PA
43592011-05-30 Pedro Alves <pedro@codesourcery.com>
4360
4361 * interps.c (interp_set): Don't cancel continuations.
4362
07e78767
JK
43632011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4366
fa4cd53f
PA
43672011-05-30 Pedro Alves <pedro@codesourcery.com>
4368
4369 * continuations.h (continuation_ftype): Add `err' parameter.
4370 Document parameters.
4371 (do_all_continuations, do_all_continuations_thread)
4372 (do_all_intermediate_continuations)
4373 (do_all_intermediate_continuations_thread)
4374 (do_all_inferior_continuations): Add `err' parameter.
4375 * continuations.c (do_my_continuations_1, do_my_continuations)
4376 (do_all_inferior_continuations, do_all_continuations_ptid)
4377 (do_all_continuations_thread_callback)
4378 (do_all_continuations_thread, do_all_continuations)
4379 (do_all_intermediate_continuations_thread_callback)
4380 (do_all_intermediate_continuations_thread)
4381 (do_all_intermediate_continuations): Add `err' parameter, and pass
4382 it down all the way to the continuations proper.
4383 * inf-loop.c (inferior_event_handler): If fetching an inferior
4384 event throws an error, don't pop the target, and still call the
4385 continuations, but with `err' set. Adjust all other continuation
4386 calls.
4387 * breakpoint.c (until_break_command_continuation): Add `err'
4388 parameter.
4389 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4390 issue another step if `err' is set.
4391 (struct until_next_continuation_args): New.
4392 (until_next_continuation): Add `err' parameter. Adjust.
4393 (until_next_command): Adjust.
4394 (struct finish_command_continuation_args): Add `thread' field.
4395 (finish_command_continuation): Add `err' parameter. Handle it.
4396 (finish_forward): Adjust.
4397 (attach_command_continuation): Add `err' parameter. Handle it.
4398 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4399 cancel the continuations.
4400 * interps.c (interp_set): Adjust to cancel the continuations.
4401 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4402 continuations rather than discarding.
4403 (free_thread): Don't clear thread inferior resources here.
4404 (delete_thread_1): Do it here instead. And do it before removing
4405 the thread from the threads list. Tag the thread as exited before
4406 clearing thread inferior resources.
4407
c2949be0
JB
44082011-05-30 Joel Brobecker <brobecker@adacore.com>
4409
4410 * infcall.c (call_function_by_hand): Rephrase error message.
4411
619cebe8
PA
44122011-05-27 Pedro Alves <pedro@codesourcery.com>
4413
4414 * defs.h (struct thread_info, struct inferior): Delete forward
4415 declarations.
4416 * breakpoint.h (struct thread_info): New forward declaration.
4417 * observer.sh (struct inferior): New forward declaration.
4418 * python/python-internal.h (struct inferior): New forward
4419 declaration.
4420
be34f849
PA
44212011-05-27 Pedro Alves <pedro@codesourcery.com>
4422
4423 * defs.h (struct continuation, continuation_ftype)
4424 (continuation_free_arg_ftype, add_continuation)
4425 (do_all_continuations, do_all_continuations_thread)
4426 (discard_all_continuations, discard_all_continuations_thread)
4427 (add_intermediate_continuation, do_all_intermediate_continuations)
4428 (do_all_intermediate_continuations_thread)
4429 (discard_all_intermediate_continuations)
4430 (discard_all_intermediate_continuations_thread)
4431 (add_inferior_continuation, do_all_inferior_continuations)
4432 (discard_all_inferior_continuations): Move to ...
4433 * continuations.h: ... this new file.
4434 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4435 infcmd.c, inferior.c, infrun.c, interps.c: Include
4436 continuations.h.
4437
432b4d03
JK
44382011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 Doug Evans <dje@google.com>
4440
4441 Fix PR 10970, PR 12702.
4442 * linux-nat.c (linux_lwp_is_zombie): New function.
4443 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4444 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4445
b0f260d6
PA
44462011-05-27 Pedro Alves <pedro@codesourcery.com>
4447
4448 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4449 typedefs.
4450 (add_continuation, add_intermediate_continuation)
4451 (add_inferior_continuation): Use them.
4452 * continuations.c (struct continuation): Use them.
4453 (make_continuation_ftype): Delete.
4454 (make_continuation, add_inferior_continuation, add_continuation)
4455 (add_intermediate_continuation): Use continuation_ftype and
4456 continuation_free_arg_ftype. Rename parameters to shorter names.
4457
af1e9a32
PA
44582011-05-27 Pedro Alves <pedro@codesourcery.com>
4459
4460 * continuations.c (make_continuation): Make it return void.
4461 (do_my_continuations): Rename to ...
4462 (do_my_continuations_1): ... this. Remove old_chain parameter and
4463 adjust.
4464 (do_my_continuations): New.
4465 (discard_my_continuations): Rename to ...
4466 (discard_my_continuations_1): ... this. Remove old_chain
4467 parameter and adjust.
4468 (discard_my_continuations): New.
4469 (add_inferior_continuation): Simplify.
4470 (do_all_inferior_continuations): Reimplement on top
4471 do_my_continuations.
4472 (discard_all_inferior_continuations): Simplify.
4473 (add_continuation): Simplify.
4474 (do_all_continuations_ptid): Simplify.
4475 (discard_all_continuations_thread_callback): Simplify.
4476 (add_intermediate_continuation): Simplify.
4477 (discard_all_intermediate_continuations_thread_callback):
4478 Simplify.
4479
50c0c017
PA
44802011-05-27 Pedro Alves <pedro@codesourcery.com>
4481
4482 * utils.c (struct continuation, add_continuation)
4483 (add_inferior_continuation)
4484 (do_all_inferior_continuations, discard_all_inferior_continuations)
4485 (restore_thread_cleanup, do_all_continuations_ptid)
4486 (do_all_continuations_thread_callback)
4487 (do_all_continuations_thread, do_all_continuations)
4488 (discard_all_continuations_thread_callback)
4489 (discard_all_continuations_thread, discard_all_continuations)
4490 (add_intermediate_continuation)
4491 (do_all_intermediate_continuations_thread_callback)
4492 (do_all_intermediate_continuations_thread)
4493 (do_all_intermediate_continuations)
4494 (discard_all_intermediate_continuations_thread_callback)
4495 (discard_all_intermediate_continuations_thread)
4496 (discard_all_intermediate_continuations): Move to ...
4497 * continuations.c: ... this new file, and adjust to no longer
4498 implement continuations on top of cleanups.
4499 * Makefile.in (SFILES): Add continuations.c.
4500 (COMMON_OBS): Add continuations.o.
4501
d8b34453
PA
45022011-05-26 Pedro Alves <pedro@codesourcery.com>
4503
4504 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4505 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4506 Internal error on invalid values.
4507 * reverse.c: Don't handle EXEC_ERROR.
4508 * mi/mi-main.c: Don't handle EXEC_ERROR.
4509
32231432
PA
45102011-05-26 Pedro Alves <pedro@codesourcery.com>
4511
4512 * record.c: Include event-loop.h, inf-loop.h.
4513 (record_beneath_to_async): New global.
4514 (tmp_to_async): New global.
4515 (record_async_inferior_event_token): New global.
4516 (record_open_1): Don't error out if async is enabled.
4517 (record_open): Handle to_async. Create an async event source in
4518 the event loop.
4519 (record_close): Delete the async event source.
4520 (record_resumed): New global.
4521 (record_execution_dir): New global.
4522 (record_resume, record_core_resume): Set them. Register the
4523 target on the event loop.
4524 (record_wait): Rename to ...
4525 (record_wait_1): ... this. Add more debug output. Handle
4526 TARGET_WNOHANG, and the target beneath returning
4527 TARGET_WAITKIND_IGNORE.
4528 (record_wait): Reimplement on top of record_wait_1.
4529 (record_async_mask_value): New global.
4530 (record_async, record_async_mask, record_can_async_p)
4531 (record_is_async_p, record_execution_direction): New functions.
4532 (init_record_ops, init_record_core_ops): Install new methods.
4533 * infrun.c (fetch_inferior_event): Temporarily switch the global
4534 execution direction to the direction the target was going.
4535 (execution_direction): Change type to int.
4536 * target.c (default_execution_direction): New function.
4537 (update_current_target): Inherit and de_fault
4538 to_execution_direction.
4539 * target.h (struct target_ops) <to_execution_direction>: New
4540 field.
4541 (target_execution_direction): New macro.
4542 * inferior.h (execution_direction): Change type to int.
4543
949dc678
PA
45442011-05-26 Pedro Alves <pedro@codesourcery.com>
4545
4546 * infcall.c (call_function_by_hand): Don't allow calling functions
4547 in reverse execution mode.
4548
c13bd2b5
PA
45492011-05-26 Pedro Alves <pedro@codesourcery.com>
4550
4551 * infcmd.c (finish_command): Allow async finish in reverse.
4552
6938fd34
YQ
45532011-05-26 Yao Qi <yao@codesourcery.com>
4554
4555 * gdb_thread_db.h: Delete. Move to ...
4556 * common/gdb_thread_db.h: ... here.
4557
9da8c2a0
PA
45582011-05-26 Pedro Alves <pedro@codesourcery.com>
4559
4560 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4561 function's entry point instead of a manually managed momentary
4562 breakpoint, and only ever issue one proceed call.
4563 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4564 doing a reverse-finish, switch to stepi mode, to do another step.
4565 (insert_step_resume_breakpoint_at_sal): Make public.
4566 (normal_stop): No need to save function value return registers if
4567 going reverse.
4568 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4569
2c03e5be
PA
45702011-05-26 Pedro Alves <pedro@codesourcery.com>
4571
4572 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4573 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4574 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4575 at the end.
4576 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4577 step-resume breakpoints.
4578 (print_it_typical): Handle bp_hp_step_resume.
4579 (bpstat_what): Ditto.
4580 (bptype_string): Ditto.
4581 (print_one_breakpoint_location): Ditto.
4582 (allocate_bp_location): Ditto.
4583 (mention): Ditto.
4584 (breakpoint_re_set_one): Ditto.
4585 * infrun.c (handle_inferior_event): Adjust. Split
4586 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4587 BPSTAT_WHAT_HP_STEP_RESUME.
4588 (insert_step_resume_breakpoint_at_sal): Rename to ...
4589 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4590 parameter. Handle it.
4591 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4592 insert_step_resume_breakpoint_at_sal_1.
4593 (insert_step_resume_breakpoint_at_frame): Rename to ...
4594 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4595 set a high-priority step-resume breakpoint.
4596 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4597 (insert_step_resume_breakpoint_at_caller): Ditto.
4598
51be5b68
PA
45992011-05-26 Pedro Alves <pedro@codesourcery.com>
4600
4601 * breakpoint.c (iterate_over_related_breakpoints): New.
4602 (do_map_delete_breakpoint): New.
4603 (delete_command): Pass do_map_delete_breakpoint to
4604 map_breakpoint_numbers.
4605 (do_disable_breakpoint): New.
4606 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4607 breakpoints.
4608 (do_enable_breakpoint): Rename to ...
4609 (enable_breakpoint_disp): ... this.
4610 (enable_breakpoint): Adjust.
4611 (do_enable_breakpoint): New.
4612 (enable_once_breakpoint): Delete.
4613 (do_map_enable_breakpoint): New.
4614 (do_map_enable_once_breakpoint): New.
4615 (enable_once_command, enable_delete_command)
4616 (delete_trace_command): Iterate over the breakpoint's related
4617 breakpoints.
4618
4a1be8d2
PA
46192011-05-26 Pedro Alves <pedro@codesourcery.com>
4620
4621 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4622 for ALPHA_ZERO_REGNUM.
4623 (alpha_supply_int_regs): Explicitly supply zero as the value for
4624 ALPHA_ZERO_REGNUM in the register cache.
4625 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4626
59d70315
YQ
46272011-05-26 Yao Qi <yao@codesourcery.com>
4628
4629 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4630
251d32d9
TG
46312011-05-26 Tristan Gingold <gingold@adacore.com>
4632
4633 * symfile.h (struct dwarf2_section_names): New type.
4634 (struct dwarf2_debug_sections): New type.
4635 (dwarf2_has_info): Add parameter.
4636 * dwarf2read.c (dwarf2_elf_names): New variable.
4637 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4638 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4639 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4640 (dwarf2_has_info): Add names parameter. Pass names
4641 to dwarf2_locate_sections.
4642 (section_is_p): Rewrite using the names parameter.
4643 (dwarf2_locate_sections): Use section names from the names parameter.
4644 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4645 * elfread.c (read_psyms): Ditto.
4646 * machoread.c (macho_symfile_read): Ditto.
4647
652c71b4
AS
46482011-05-25 Andreas Schwab <schwab@redhat.com>
4649
4650 PR gdb/8677
4651 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4652
f17170e5
KS
46532011-05-24 Keith Seitz <keiths@redhat.com>
4654
4655 PR breakpoint/12803
4656 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4657 (decode_compound): Unconditionally call keep_name_info.
4658
cdac0397
PA
46592011-05-24 Pedro Alves <pedro@codesourcery.com>
4660
4661 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4662 scope, clear its command list.
4663 (map_breakpoint_numbers): Don't walk the related breakpoints list
4664 of each breakpoint.
4665
91d4fe3f
TT
46662011-05-24 Tom Tromey <tromey@redhat.com>
4667
4668 * MAINTAINERS: Move Jim Blandy to past maintainers.
4669
3017a003
TG
46702011-05-24 Tristan Gingold <gingold@adacore.com>
4671
4672 * symfile.h (enum dwarf2_section_enum): New type.
4673 (dwarf2_get_section_info): New prototype.
4674 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4675 section_name by sect. Use a switch to select the info.
4676 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4677 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4678
c91c8c16
PA
46792011-05-24 Pedro Alves <pedro@codesourcery.com>
4680
4681 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4682 shared library event breakpoint if there's no execution.
4683
77bc418a
TJB
46842011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
4685
4686 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4687 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4688
c50491a7
TT
46892011-05-23 Tom Tromey <tromey@redhat.com>
4690
4691 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
4692 NULL.
4693
6d64e6d4
DE
46942011-05-23 Doug Evans <dje@google.com>
4695
4696 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4697 entry for RuntimeError to doc string.
4698
2067c8d4
JG
46992011-05-23 Jerome Guitton <guitton@adacore.com>
4700
4701 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4702 sequence for probing loops.
4703
b136cd05
PA
47042011-05-23 Pedro Alves <pedro@codesourcery.com>
4705
4706 * infrun.c (user_visible_resume_ptid): Fix typos in describing
4707 comment.
4708
22e74ef9
MK
47092011-05-21 Mark Kettenis <kettenis@gnu.org>
4710
4711 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4712 zero as the value for %g0 in the register cache.
4713 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4714 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4715
842951eb
PA
47162011-05-20 Pedro Alves <pedro@codesourcery.com>
4717
4718 * infrun.c (proceed): Set previous_inferior_ptid here.
4719 (init_wait_for_inferior): Initialize previous_inferior_ptid from
4720 inferior_ptid, not null_ptid.
4721 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4722 (fetch_inferior_event): Nor here.
4723
46cf51e6
PA
47242011-05-20 Pedro Alves <pedro@codesourcery.com>
4725
4726 * inf-loop.c (inferior_event_handler): Only output a message if
4727 verbose.
4728
29ef4c46
LM
47292011-05-20 Luis Machado <lgustavo@codesourcery.com>
4730
4731 * MAINTAINERS: Update my e-mail address.
4732
f148b27e
PA
47332011-05-20 Pedro Alves <pedro@codesourcery.com>
4734
4735 * infrun.c (proceed): Switch the inferior event loop to
4736 INF_EXEC_COMPLETE if the target refused to resume from a
4737 vfork/fork.
4738
09cee04b
PA
47392011-05-20 Pedro Alves <pedro@codesourcery.com>
4740
4741 * infcmd.c: Include "inf-loop.h".
4742 (step_once): When stepping into an inline subroutine, pretend the
4743 target has run. If the target can async, switch the inferior
4744 event loop to INF_EXEC_COMPLETE.
4745 * inferior.h (user_visible_resume_ptid): Declare.
4746 * infrun.c (user_visible_resume_ptid): New function, factored out
4747 from `resume'.
4748 (resume): Use it.
4749 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4750 that the current thread is running. Merge async and sync
4751 branches.
4752
751b8ce1
PA
47532011-05-20 Pedro Alves <pedro@codesourcery.com>
4754
4755 * infcmd.c (step_1): Simplify synchronous case.
4756
e93a69ed
PA
47572011-05-20 Pedro Alves <pedro@codesourcery.com>
4758
4759 * tracepoint.c: Include exceptions.h.
4760 (TFILE_PID): Move higher in file.
4761 (tfile_open): Delay pushing the tfile target until we're assured
4762 the tfile header is present in the file. Wrap reading the initial
4763 newline-terminated lines in TRY_CATCH. Pop the target if the
4764 initial setup failed. Add the tfile's thread immediately
4765 aftwards, before any non-essential setup. Don't skip
4766 post_create_inferior if there are no traceframes present in the
4767 file.
4768 (tfile_close): Remove redundant check for null before xfree call.
4769 (tfile_thread_alive): New function.
4770 (init_tfile_ops): Register it as to_thread_alive callback.
4771
6823e2b1
PA
47722011-05-20 Pedro Alves <pedro@codesourcery.com>
4773
4774 * tracepoint.c (tfile_open): Delete #if 0'd code.
4775
b3c8eb43
JK
47762011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4777
4778 Fix -readnow for -gdwarf-4 unused type units.
4779 * dwarf2read.c (struct signatured_type): Remove the field offset.
4780 (create_signatured_type_table_from_index): Remove its initialization.
4781 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
4782 instead. Add a complaint call.
4783 (process_psymtab_comp_unit): Change assignment to gdb_assert.
4784 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4785 (lookup_signatured_type_at_offset, read_signatured_type)
4786 (write_one_signatured_type): Update the field for per_cu.
4787
310afc76
TT
47882011-05-19 Tom Tromey <tromey@redhat.com>
4789
4790 * python/py-inferior.c (python_inferior_exit): Use
4791 target_gdbarch.
4792 (python_on_resume): Likewise.
4793
cf6c5ffb
TT
47942011-05-19 Matt Rice <ratmice@gmail.com>
4795
4796 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4797
fb80a3c5
HZ
47982011-05-19 Hui Zhu <teawater@gmail.com>
4799
4800 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4801
3672b1be
HZ
48022011-05-19 Hui Zhu <teawater@gmail.com>
4803
4804 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4805
ff355380
TT
48062011-05-18 Tom Tromey <tromey@redhat.com>
4807
4808 * dwarf2read.c (dwarf2_add_field): Constify.
4809 * value.c (value_static_field): Constify.
4810 * gdbtypes.h (struct main_type) <field.field_location.physname>:
4811 Now const.
4812 * ax-gdb.c (gen_static_field): Constify
4813
ed731959
JK
48142011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4815
4816 * linux-nat.c (kill_callback): Use SIGKILL first.
4817
967cff16
JB
48182011-05-18 Joel Brobecker <brobecker@adacore.com>
4819
4820 * ada-lang.c (print_it_exception): Avoid use of sprintf.
4821
1d06ead6
TT
48222011-05-18 Tom Tromey <tromey@redhat.com>
4823
4824 * value.c (value_fn_field): Constify.
4825 * symtab.c (gdb_mangle_name): Constify.
4826 * stabsread.c (update_method_name_from_physname): Make 'physname'
4827 argument const.
4828 * p-typeprint.c (pascal_type_print_method_args): Make arguments
4829 const. Use explicit fputc_filtered loop.
4830 (pascal_type_print_base): Constify.
4831 * p-lang.h (pascal_type_print_method_args): Update.
4832 * linespec.c (add_matching_methods): Constify.
4833 (add_constructors): Likewise.
4834 * jv-typeprint.c (java_type_print_base): Constify.
4835 * gdbtypes.h (struct cplus_struct_type)
4836 <fn_fieldlist.fn_field.physname>: Now const.
4837 * dwarf2read.c (compute_delayed_physnames): Constify.
4838 (dwarf2_add_member_fn): Likewise.
4839 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
4840
0d9a9a5f
PA
48412011-05-18 Pedro Alves <pedro@codesourcery.com>
4842
4843 * infrun.c (resume): Mention which is the current thread, and its
4844 current PC in debug output.
4845 (prepare_to_proceed): Mention the thread switching in debug
4846 output.
4847
05386e9e
TT
48482011-05-18 Tom Tromey <tromey@redhat.com>
4849
4850 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4851 path check. Use xmalloc and cleanups.
4852 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4853
ee86786c
TT
48542011-05-17 Tom Tromey <tromey@redhat.com>
4855
4856 * cp-valprint.c (cp_print_value_fields): Catch errors from
4857 value_static_field.
4858
9ff3b74f
TT
48592011-05-17 Tom Tromey <tromey@redhat.com>
4860
4861 * dwarf2read.c (dwarf2_get_die_type): Call
4862 get_die_type_at_offset.
4863 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4864 get_base_type function.
4865
cd3da28e
PA
48662011-05-17 Tomas Martinec <fyzmat@gmail.com>
4867
4868 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4869 trap_expected.
4870
fd20d931
DE
48712011-05-16 Doug Evans <dje@google.com>
4872
4873 * python/py-auto-load.c (source_section_scripts): Mention objfile
4874 name in warning.
4875
75fc9810
DE
48762011-05-15 Doug Evans <dje@google.com>
4877
290351b8
DE
4878 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4879 (try_thread_db_load_from_pdir): Call it. If unable to find
4880 libthread_db in directory of libpthread, see if we're looking at
4881 the separate-debug-info copy.
4882
75fc9810
DE
4883 * python/py-autoload.c (print_script): Print "Missing" instead of
4884 "No" for missing scripts.
4885 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4886
9f7bc587
DE
48872011-05-13 Doug Evans <dje@google.com>
4888
4889 * ui-file.c (stdio_file_write_async_safe): Add comment.
4890
093cee7d
HZ
48912011-05-14 Hui Zhu <teawater@gmail.com>
4892
4893 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4894
dbaefcf7
DE
48952011-05-13 Doug Evans <dje@google.com>
4896
98a5dd13
DE
4897 Support $pdir and $sdir in libthread-db-search-path.
4898 * NEWS: Mention $sdir,$pdir.
4899 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4900 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4901 (try_thread_db_load_from_sdir): New function.
4902 (try_thread_db_load_from_dir): New function.
4903 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
4904 system directories if search of libthread-db-search-path fails,
4905 that is now done via $sdir.
4906 (has_libpthread): New function.
4907 (thread_db_load): Remove search for libthread_db in directory of
4908 libpthread, that is now done via $pdir.
4909
dbaefcf7
DE
4910 * NEWS: Mention "info auto-load-scripts".
4911 * python/py-auto-load.c (struct auto_load_pspace_info): New member
4912 script_not_found_warning_printed.
4913 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4914 all callers updated. Initialize script_not_found_warning_printed.
4915 (get_auto_load_pspace_data_for_loading): New function.
4916 (maybe_add_script): New function.
4917 (source_section_scripts): Simplify. Only print one warning regardless
4918 of the number of auto-load scripts not found.
4919 (clear_section_scripts): Clear script_not_found_warning_printed.
4920 (auto_load_objfile_script): Record script in hash table.
4921 (count_matching_scripts): New function.
4922 (maybe_print_script): Renamed from maybe_print_section_script, all
4923 callers updated. Rewrite to use ui_out_*.
4924 (info_auto_load_scripts): Renamed from
4925 maintenance_print_section_scripts, all callers updated.
4926 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4927 renamed as "info auto-load-scripts".
4928
9930639c
TT
49292011-05-13 Tom Tromey <tromey@redhat.com>
4930
4931 * dwarf2expr.c (read_uleb128): Cast intermediate result.
4932 (read_sleb128): Likewise.
4933
06826322
TT
49342011-05-13 Tom Tromey <tromey@redhat.com>
4935
4936 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4937 offset display.
4938
01124a23
DE
49392011-05-13 Doug Evans <dje@google.com>
4940
4941 * linux-nat.c (debug_linux_nat_async): Delete.
4942 Replace all references to use debug_linux_nat instead.
4943 (show_debug_linux_nat_async): Delete.
4944 (sigchld_handler): Call ui_file_write_async_safe instead of
4945 fprintf_unfiltered.
4946 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4947 * ui-file.c (struct ui_file): New member to_write_async_safe.
4948 (null_file_write_async_safe): New function.
4949 (ui_file_write_async_safe): New function.
4950 (set_ui_file_write_async_safe): New function.
4951 (ui_file_new): Initialize to_write_async_safe.
4952 (stdio_file_write_async_safe): New function.
4953 (struct stdio_file): New member fd.
4954 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
4955 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4956 fileno.
01124a23
DE
4957 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4958 (set_ui_file_write_async_safe): Declare.
4959 (ui_file_write_async_safe): Declare.
4960
72fc29ff
TT
49612011-05-13 Tom Tromey <tromey@redhat.com>
4962
4963 * utils.c (do_value_free): New function.
4964 (make_cleanup_value_free): Likewise.
4965 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4966 freeing correctly.
4967 (dwarf2_loc_desc_needs_frame): Call
4968 make_cleanup_value_free_to_mark.
4969 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4970 * dwarf2expr.c (free_dwarf_expr_context): Don't call
4971 value_free_to_mark.
4972 (new_dwarf_expr_context): Don't call value_mark.
4973 * dwarf2-frame.c (execute_stack_op): Call
4974 make_cleanup_value_free_to_mark.
4975 * defs.h (make_cleanup_value_free): Declare.
4976
028d0ed5
TJB
49772011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4978
4979 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4980 prepare_execute_command.
4981 * top.c (prepare_execute_command): Return cleanup.
4982 (execute_command): Use cleanup from prepare_execute_command.
4983 * top.h (prepare_execute_command): Change prototype to return
4984 cleanup.
4985 * defs.h (struct value): Add opaque declaration.
4986 (make_cleanup_value_free_to_mark): Add prototype.
4987 * utils.c (do_value_free_to_mark): New function.
4988 (make_cleanup_value_free_to_mark): Likewise.
4989
b087e0ed
TT
49902011-05-12 Tom Tromey <tromey@redhat.com>
4991
4992 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4993 cast left-hand-side to unsigned.
4994
8a9b8146
TT
49952011-05-12 Tom Tromey <tromey@redhat.com>
4996
4997 PR gdb/12617:
4998 * value.h (value_from_contents): Declare.
4999 * value.c (value_from_contents): New function.
5000 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5001 (dwarf2_get_die_type): New function.
5002 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5003 (allocate_piece_closure): Acquire reference to values.
5004 (read_pieced_value): Update for value-based expressions.
5005 (write_pieced_value): Likewise.
5006 (free_pieced_value_closure): Call value_free as needed.
5007 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5008 Update for value-based expressions.
5009 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5010 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5011 <get_base_type>: New field.
5012 (struct dwarf_expr_piece) <v.value>: Change type.
5013 <v.regno>: New field.
5014 (struct dwarf_expr_context) <mark>: New field.
5015 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5016 (dwarf_expr_pop, dwarf_expr_push): Remove.
5017 (dwarf_expr_push_address): Declare.
5018 * dwarf2expr.c (dwarf_arch_cookie): New global.
5019 (struct dwarf_gdbarch_types): New.
5020 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5021 functions.
5022 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5023 static.
5024 (dwarf_expr_push_address): New function.
5025 (dwarf_expr_pop): Now static.
5026 (dwarf_expr_fetch): Change return type.
5027 (dwarf_require_integral): New function.
5028 (dwarf_expr_fetch): Simplify.
5029 (add_piece): Update.
5030 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5031 functions.
5032 (execute_stack_op) <sign_ext>: Remove.
5033 Use values for DWARF stack.
5034 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5035 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5036 New cases.
5037 (_initialize_dwarf2expr): New function.
5038 (add_piece): Update.
5039 (new_dwarf_expr_context): Set new field.
5040 (free_dwarf_expr_context): Call value_free_to_mark.
5041 * dwarf2-frame.c (no_base_type): New function.
5042 (execute_stack_op): Set get_base_type field. Update.
5043
e8d28ef4
TT
50442011-05-12 Tom Tromey <tromey@redhat.com>
5045
5046 * dwarf2read.c (read_common_block): Fix formatting.
5047
d248b706
KY
50482011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5049
5050 * breakpoint.c (disable_breakpoint): Disable all locations
5051 associated with a tracepoint on target if a trace experiment is
5052 running.
5053 (disable_command): Disable a specific tracepoint location on target if
5054 a trace experiment is running.
5055 (do_enable_breakpoint): Enable all locations associated with a
5056 tracepoint on target if a trace experiment is running.
5057 (enable_command) Enable a specific tracepoint location on target if a
5058 trace experiment is running.
5059 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5060 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5061 to_disable_tracepoint.
5062 * target.h: Add declaration of struct bp_location.
5063 (struct target_ops): Add new functions
5064 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5065 to_disable_tracepoint to target operations.
5066 (target_supports_enable_disable_tracepoint): New macro.
5067 (target_enable_tracepoint): New macro.
5068 (target_disable_tracepoint): New macro.
5069 * remote.c (struct remote_state): Add new field.
5070 (remote_enable_disable_tracepoint_feature): New.
5071 (remote_protocol_features): Add new entry.
5072 (remote_supports_enable_disable_tracepoint): New.
5073 (remote_enable_tracepoint): New.
5074 (remote_disable_tracepoint): New.
5075 (init_remote_ops): Add remote_enable_tracepoint,
5076 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5077 to remote operations.
5078 * tracepoint.c (start_tracing): Allow tracing to start without any
5079 tracepoints enabled with just a warning if they can be re-enabled
5080 later.
5081 * NEWS: Add news item for the new behaviour of the enable and disable
5082 GDB commands when applied to tracepoints.
5083 Add news items for the new remote packets QTEnable and QTDisable.
5084
cc88a640
JK
50852011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5086
5087 * config.in: Regenerate.
5088 * configure: Regenerate.
5089 * configure.ac <--with-system-readline> (for readline_echoing_p):
5090 Remove the test.
5091 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5092 (tui_old_rl_echoing_p): ... here.
5093 (tui_setup_io): Rename extern declaration readline_echoing_p to
5094 _rl_echoing_p. Adjust assignments for the both renames.
5095
1f84b619
TJB
50962011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5097
5098 * symtab.c (lookup_symtab): Run cleanup before returning.
5099
74ac6d43
TT
51002011-05-11 Tom Tromey <tromey@redhat.com>
5101
5102 * dwarf2read.c (handle_data_member_location): New function.
5103 (dwarf2_add_field): Use it.
5104 (read_common_block): Likewise.
5105
5488dafb
JK
51062011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5107
5108 Make addrs->SECTINDEX always defined.
5109 * symfile.c (relative_addr_info_to_section_offsets): Check for
5110 SECTINDEX -1, not for zero ADDR.
5111 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5112 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5113 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5114 on its validity.
5115
84e578fb
DE
51162011-05-10 Doug Evans <dje@google.com>
5117
2471d008
DE
5118 * linux-thread-db.c: Whitespace cleanup.
5119 (try_thread_db_load_1): Fix comment.
5120
84e578fb
DE
5121 * linux-thread-db.c (set_libthread_db_search_path): New function.
5122 (_initialize_thread_db): Add setter for libthread-db-search-path.
5123
673c2bbe
DE
51242011-05-09 Doug Evans <dje@google.com>
5125
478aac75
DE
5126 * NEWS: Mention --with-iconv-bin.
5127 * configure.ac: New option --with-iconv-bin.
5128 * configure: Regenerate.
5129 * config.in: Regenerate.
5130 * defs.h (relocate_gdb_directory): Declare.
5131 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5132 removed progname parameter, and exported. All callers updated.
5133 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5134
673c2bbe
DE
5135 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5136 adding missing call to restore_child_signals_mask.
5137
e4c8541f
PA
51382011-05-09 Pedro Alves <pedro@codesourcery.com>
5139
5140 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5141 parameter.
5142 * infrun.c (proceed, start_remote): Adjust.
5143 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5144 and adjust to not handle it.
5145 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5146 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5147 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5148 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5149 * windows-nat.c (do_initial_windows_stuff): Adjust.
5150 * infcmd.c (attach_command): Adjust.
5151 (notice_new_inferior): Adjust.
5152
a536c6d7
UW
51532011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5154
5155 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5156 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5157 * spu-tdep.c (op_selb): Use correct value.
5158
7845b013
UW
51592011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5160
5161 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5162 "parent" parameter to symbol_file_add_from_bfd call.
5163
9c06b0b4
TJB
51642011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5165 Thiago Jung Bauermann <bauerman@br.ibm.com>
5166
5167 Implement support for PowerPC BookE masked watchpoints.
5168 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5169 section.
5170 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5171 method. Initialize to NULL in all existing breakpoint_ops instances.
5172 (struct breakpoint) <hw_wp_mask>: New field.
5173 * breakpoint.c (is_masked_watchpoint): Add prototype.
5174 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5175 breakpoint's breakpoint_ops.works_in_software_mode if available.
5176 (watchpoints_triggered): Handle the case of a hardware masked
5177 watchpoint trigger.
5178 (watchpoint_check): Likewise.
5179 (works_in_software_mode_watchpoint): New function.
5180 (insert_masked_watchpoint, remove_masked_watchpoint)
5181 (resources_needed_masked_watchpoint)
5182 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5183 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5184 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5185 functions.
5186 (masked_watchpoint_breakpoint_ops): New structure.
5187 (watch_command_1): Check for the existence of the `mask' parameter.
5188 Set b->ops according to the type of hardware watchpoint being created.
5189 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5190 (ppc_linux_remove_mask_watchpoint)
5191 (ppc_linux_masked_watch_num_registers): New functions.
5192 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5193 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5194 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5195 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5196 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5197 (target_masked_watch_num_registers): New functions.
5198 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5199 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5200 methods.
5201 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5202 (target_masked_watch_num_registers): Add prototypes.
5203
8be455d7
JK
52042011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5205
5206 PR 12573
5207 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5208 (producer_is_gcc_ge_4_0): New function.
5209 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5210 symtab->language code.
5211 (var_decode_location): Set cu->has_loclist.
5212 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5213 skip. Intialize force_skip from locations_valid. Move the prologue
5214 skipping code into two passes.
5215 * symtab.h (struct symtab): Make the primary field a bitfield. New
5216 field locations_valid.
5217
d8228535
JK
52182011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5219
5220 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5221 (classify_inner_name): Call cp_lookup_nested_type with
5222 yylval.tsym.type.
5223 * cp-namespace.c (cp_lookup_nested_type): New variable
5224 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5225 type_name_no_tag_or_error with saved_parent_type.
5226 * dwarf2read.c (load_partial_dies): Read in any children of
5227 DW_TAG_typedef with complaint in such case.
5228 * gdbtypes.c (type_name_no_tag_or_error): New function.
5229 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5230 * valops.c (destructor_name_p): New comment for parameter type. Remove
5231 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5232 * value.h (destructor_name_p): Remove type const.
5233
1976171a
JK
52342011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5235
5236 * symtab.c (compare_symbol_name): New function.
5237 (completion_list_add_name, expand_partial_symbol_name): Call it,
5238 remove the variable ncmp.
5239 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5240 gdb_assert it.
5241
a9634178
TJB
52422011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5243
5244 Demote to sw watchpoint only in update_watchpoint.
5245 * breakpoint.c (update_watchpoint): Change between software and
5246 hardware watchpoint for all kinds of watchpoints, not just
5247 read/write ones. Determine b->exact value here instead of
5248 in watch_command_1. Error out if there are not enough resources
5249 for a read or access hardware watchpoint.
5250 (watch_command_1): Remove logic of checking whether there are
5251 enough resources available, since update_watchpoint will do that
5252 work now. Don't set b->exact here. Catch exceptions thrown by
5253 update_watchpoint and delete the watchpoint.
5254 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5255 Use target_exact_watchpoints instead.
5256 (delete_breakpoint): Notify observers only if deleted watchpoint
5257 has a breakpoint number assigned to it.
5258
4c67c798
JJ
52592011-05-05 Janis Johnson <janisjo@codesourcery.com>
5260
5261 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5262
a3fcb948
JG
52632011-05-05 Jerome Guitton <guitton@adacore.com>
5264
5265 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5266 New functions.
5267 (i386_stack_tramp_frame_unwind): New static global.
5268 (i386_match_pattern): New function, extracted from i386_match_insn.
5269 (i386_match_insn): Use i386_match_pattern.
5270 (i386_match_insn_block): New function.
5271 (i386_tramp_chain_in_reg_insns)
5272 (i386_tramp_chain_on_stack_insns): New static variables.
5273 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5274 of unwinders.
5275
4d393d60
JM
52762011-05-04 Joseph Myers <joseph@codesourcery.com>
5277
5278 * configure.host (xscale*): Don't handle target.
5279 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5280 handle targets.
5281
f70bd40b
YQ
52822011-05-04 Yao Qi <yao@codesourcery.com>
5283
5284 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5285
dd3295ee
JB
52862011-05-03 Joel Brobecker <brobecker@adacore.com>
5287
5288 Revert:
5289 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5290 | * elfread.c (elf_symtab_read): Stop memory leak.
5291
90375a0e
PM
52922011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5293
5294 * nto-tdep.c (nto_target): Replace deprecated call to
5295 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5296
d07205c2
JK
52972011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5298
5299 Fix false GCC warning.
5300 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5301
1e718ff1
TJB
53022011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5303
5304 * breakpoint.c (update_watchpoint): Move code to change
5305 the enable state of breakpoint from here ...
5306 (do_enable_breakpoint): ... to here.
5307
35bef4fd
TT
53082011-04-26 Andrew Gontarek <andrewg@cray.com>
5309
78290264
PP
5310 * valprint.c (val_print_array_elements): Fixed poor performance
5311 of printing very large arrays with repeat_count_threshold set
5312 to unlimited. New comment.
35bef4fd 5313
38a714bb
TT
53142011-04-29 Tom Tromey <tromey@redhat.com>
5315
5316 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5317 (mi_parse): Likewise.
5318 * breakpoint.c (break_range_command): Use sizeof char*, not
5319 char**.
5320 (create_breakpoint): Likewise.
5321 (parse_breakpoint_sals): Likewise.
5322
eb73ad13
PA
53232011-04-29 Pedro Alves <pedro@codesourcery.com>
5324
5325 * linux-nat.c (linux_child_remove_fork_catchpoint)
5326 (linux_child_remove_vfork_catchpoint)
5327 (linux_child_remove_exec_catchpoint): New functions.
5328 (linux_target_install_ops): Install them.
5329
d65aec65
PM
53302011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5331
5332 PR mi/12531
5333
5334 * varobj.c (install_default_visualizer): Do not install a
5335 visualizer if the varobj is CPLUS_FAKE_CHILD.
5336 (construct_visualizer): Likewise.
5337
165195f4
JK
53382011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5339
5340 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5341 case insensitive comparison.
5342
30852783
UW
53432011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5344
5345 * infrun.c (proceed): Revert previous change.
5346 (resume): Instead, handle the case of signal delivery while stepping
5347 off a breakpoint location here, and only if software single-stepping
5348 is used. Handle nested signals.
5349
7ff120b4
YQ
53502011-04-28 Yao Qi <yao@codesourcery.com>
5351
5352 * arm-tdep.c (copy_unmodified): Rename to ...
5353 (arm_copy_unmodified): .. this. New.
5354 (copy_preload): Move common part to ...
5355 (install_preload): .. this. New.
5356 (arm_copy_preload): New.
5357 (copy_preload_reg): Move common part to ...
5358 (install_preload_reg): ... this. New.
5359 (arm_copy_preload_reg): New.
5360 (copy_b_bl_blx): Move common part to ...
5361 (install_b_bl_blx): .. this. New.
5362 (arm_copy_b_bl_blx): New.
5363 (copy_bx_blx_reg): Move common part to ...
5364 (install_bx_blx_reg): ... this. New.
5365 (arm_copy_bx_blx_reg): New.
5366 (copy_alu_reg): Move common part to ...
5367 (install_alu_reg): ... this. New.
5368 (arm_copy_alu_reg): New.
5369 (copy_alu_shifted_reg): Move common part to ...
5370 (install_alu_shifted_reg): ... this. New.
5371 (copy_ldr_str_ldrb_strb): Move common part to ...
5372 (install_ldr_str_ldrb_strb): ... this. New.
5373 (arm_copy_ldr_str_ldrb_strb): New.
5374 (copy_copro_load_store): Move some common part to ...
5375 (install_copy_copro_load_store): ... this. New.
5376 (arm_copy_copro_load_store): New.
5377 (copy_svc): Delete.
5378 (arm_copy_svc): Renamed from copy_svc.
5379 (copy_undef): Delete.
5380 (arm_copy_undef): Renamed from copy_undef.
5381 (decode_ext_reg_ld_st): Delete.
5382 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5383 (decode_svc_copro): Delete.
5384 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5385 (copy_copro_load_store, copy_alu_imm): update callers.
5386 (copy_extra_ld_st, copy_block_xfer): Likewise.
5387 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5388 (decode_miscellaneous, decode_dp_misc): Likewise.
5389 (decode_ld_st_word_ubyte, decode_media): Likewise.
5390 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5391 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5392 (decode_unconditional, decode_miscellaneous): Likewise.
5393 (decode_media, decode_b_bl_ldmstm): Likewise.
5394 (arm_process_displaced_insn): Likewise..
5395 (decode_misc_memhint_neon): Delete.
5396 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5397 (decode_miscellaneous): Delete.
5398 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5399 (decode_dp_misc): Delete.
5400 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5401 (decode_ld_st_word_ubyte): Delete.
5402 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5403 (decode_media): Delete.
5404 (arm_decode_media): Renamed from decode_media.
5405 (decode_b_bl_ldmstm): Delete.
5406 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5407 (decode_ext_reg_ld_st): Delete.
5408 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5409 (decode_unconditional): Delete.
5410 (arm_decode_unconditional): Renamed from decode_unconditional.
5411
559a7a62
JK
54122011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 Case insensitive lookups implementation.
5415 * dwarf2read.c: Include ctype.h.
5416 (struct mapped_index): New field version.
5417 (mapped_index_string_hash): New parameter index_version. New comment
5418 for it. Call tolower appropriately.
5419 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5420 Choose the right index version for mapped_index_string_hash.
5421 (dwarf2_read_index): Support also the index version 5. Initialize the
5422 new struct mapped_index field version.
5423 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5424 (find_slot): Explain the version needs. Pass INT_MAX for the new
5425 parameter.
5426 (write_psymtabs_to_index): Produce version 5.
5427 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5428 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5429 * psymtab.c (lookup_partial_symbol): Find the
5430 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5431 entries.
5432 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5433 NAME lowercasing.
5434 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5435 (completion_list_add_name): New variable ncmp, initialize it, use it.
5436 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5437 * utils.c (strcmp_iw): Support case_sensitive_off.
5438 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5439 New function comment part. New variables saved_string1,
5440 saved_string2 and case_pass. Add a proper second pass.
5441
681bf369
JK
54422011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 Replace re_comp/re_exec by regcomp/regexec.
5445 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5446 (search_symbols_name_matches): Use them, use regexec.
5447 (search_symbols): New variable retval_chain, adjust the use of
5448 old_chain against it. Replace re_comp by regcomp. Use the new struct
5449 search_symbols_data fields, use regexec instead of re_exec.
5450
b11b1f88
JK
54512011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 Format the code for the next patch.
5454 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5455 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5456 New variables c1 and c2.
5457
2484c66b
UW
54582011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5459
5460 * infrun.c (proceed): Do not single-step into signal delivery
5461 when stepping off a breakpoint location.
5462 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5463 (insert_step_resume_breakpoint_at_caller): Likewise.
5464 (insert_step_resume_breakpoint_at_sal): Likewise.
5465 (insert_longjmp_resume_breakpoint): Likewise.
5466
47423772
YQ
54672011-04-27 Yao Qi <yao@codesourcery.com>
5468
5469 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5470
13bdd2e7
JB
54712011-04-27 Joel Brobecker <brobecker@adacore.com>
5472
5473 * procfs.c (procfs_pass_signals): Fix advance declaration.
5474
2455069d
UW
54752011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5476
5477 * target.h (struct target_ops): Remove to_notice_signals;
5478 add to_pass_signals.
5479 (target_notice_signals): Remove.
5480 (target_pass_signals): Add prototype.
5481 * target.c (update_current_target): Remove to_notice_signals;
5482 mention to_pass_signals.
5483 (target_pass_signals): New function.
5484 (debug_to_notice_signals): Remove.
5485 (setup_target_debug): Do not install debug_to_notice_signals.
5486
5487 * infrun.c (signal_pass): New global.
5488 (resume): Call target_pass_signals.
5489 (handle_inferior_event): Report all signals while stepping over
5490 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5491 are re-inserted when stepping over a signal handler.
5492 (signal_cache_update): New function.
5493 (signal_stop_update): Call it.
5494 (signal_print_update): Likewise.
5495 (signal_pass_update): Likewise.
5496 (handle_command): Call signal_cache_update and target_pass_signals
5497 instead of target_notice_signals.
5498 (_initialize_infrun): Initialize signal_pass.
5499
5500 * linux-nat.c (pass_mask): New global.
5501 (linux_nat_pass_signals): New function.
5502 (linux_nat_create_inferior): Report all signals initially.
5503 (linux_nat_attach): Likewise.
5504 (linux_nat_resume): Use pass_mask to decide whether to directly
5505 handle an inferior signal.
5506 (linux_nat_wait_1): Likewise.
5507 (linux_nat_add_target): Install to_pass_signals callback.
5508
5509 * nto-procfs.c (notice_signals): Remove.
5510 (procfs_resume): Do not call notice_signals.
5511 (procfs_notice_signals): Remove.
5512 (procfs_pass_signals): New function.
5513 (init_procfs_ops): Install to_pass_signals callback instead of
5514 to_notice_signals callback.
5515 (_initialize_procfs): Report all signals initially.
5516
5517 * procfs.c (procfs_notice_signals): Remove.
5518 (procfs_pass_signals): New function.
5519 (procfs_target): Install to_pass_signals callback instead of
5520 to_notice_signals callback.
5521 (register_gdb_signals): Remove.
5522 (procfs_debug_inferior): Report all signals initially.
5523 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5524
5525 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5526 parameters; use them instead of calling signal_..._state routines.
5527 (remote_notice_signals): Remove.
5528 (remote_start_remote): Report all signals initially.
5529 (remote_resume): Do not call remote_pass_signals.
5530 (_initialize_remote): Install to_pass_signals callback instead of
5531 to_notice_signals callback.
5532
46c6471b
PA
55332011-04-27 Pedro Alves <pedro@codesourcery.com>
5534
5535 * breakpoint.c (user_settable_breakpoint): Delete.
5536 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5537 (delete_command): Check user_breakpoint_p instead of looking at
5538 the breakpoint's type.
5539 (disable_command): Ditto.
5540 (enable_command): Ditto.
5541 (delete_trace_command): Use user_breakpoint_p instead of looking
5542 at the breakpoint number directly. When checking if there are
5543 user visible tracepoints, in order to know whether to ask the user
5544 for confirmation, check whether the breakpoint is actually a
5545 tracepoint.
5546
f6d90398
VP
55472011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5548
5549 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5550 compilation.
5551
8d3788bd
VP
55522011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5553
5554 MI breakpoint notifications.
5555
f33edef8
PP
5556 * annotate.c (breakpoint_changed): Adjust parameter type.
5557 * breakpoint.c (set_breakpoint_condition): Adjust to change
5558 in breakpoint_modified type.
5559 (breakpoint_set_commands): Likewise.
5560 (do_map_commands_command): Likewise.
5561 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5562 changed after bumping hit count.
5563 (bpstat_stop_status): Likewise.
5564 (print_one_breakpoint_location): Don't wrap in tuple here.
5565 (print_one_breakpoint): Always print individual locations.
5566 For locations, use unnamed tuple.
5567 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5568 has changed.
5569 (create_catchpoint, create_syscall_event_catchpoint): Call
5570 breakpoint_created obsever.
5571 (mention): Don't call breakpoint_created observer.
5572 (create_breakpoint_sal): Call breakpoint_created observer.
5573 (create_breakpoint, watch_command_1): Likewise.
5574 (create_ada_exception_breakpoint): Likewise.
5575 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5576 (locations_are_equal): New.
5577 (update_breakpoint_locations): If locations were changed, notify.
5578 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5579 Call breakpoint_modified observer.
5580
5581 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5582 (mi_cmd_break_insert): Don't set observers for modify and delete.
5583 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5584 (mi_breakpoint_created, mi_breakpoint_deleted)
5585 (mi_breakpoint_modified): New.
5586 (mi_interpreter_init): Hook the above.
5587 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5588 while -break-* commands are executing.
5589 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5590 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5591 (mi_redirect): New.
5592 (mi_ui_out_impl): Hook in mi_redirect.
5593 (mi_field_skip): True to the name, skip the field, don't output
5594 a field with an empty value.
5595
5596 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5597 (gdbpy_breakpoint_deleted): Adjust.
5598 * tui/tui-hooks.c (tui_event_create_breakpoint)
5599 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5600
a8f42b45
UW
56012011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
5602
5603 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5604 (procfs_remove_hw_watchpoint): Likewise.
5605
57e12211
TT
56062011-04-26 Michael Walle <michael@walle.cc>
5607
5608 * remote.c (remote_start_remote): Ack packet after sending the
5609 interrupt sequence.
5610
af96c192
YQ
56112011-04-26 Yao Qi <yao@codesourcery.com>
5612
f33edef8
PP
5613 * linux-nat.c: Move common macros to ...
5614 Include linux-ptrace.h.
5615 * common/linux-ptrace.h: ... here. New.
af96c192 5616
3e03848b
JK
56172011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5618
5619 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5620 !objfile_has_partial_symbols. New comment.
5621 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5622 SYM_READ_PSYMBOLS is not present. Extend the comment.
5623 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5624
1ae0d051
JK
56252011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 * defs.h (ENUM_BITFIELD): Remove.
5628
03f2bd59
JK
56292011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5630 Eli Zaretskii <eliz@gnu.org>
5631
5632 * NEWS: Document the new gdbserver --once option.
5633
4161fbb0
JZ
56342011-04-21 Jie Zhang <jzhang918@gmail.com>
5635
5636 * MAINTAINERS: Update my email address.
5637
bcb28afc
PM
56382011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5639
5640 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5641 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5642 function call if __STDC_ISO_10646__ macro is defined.
5643 (intermediate_encoding): New prototype.
5644 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5645 to generate compile time error for unsupported gdb_wchar_t size.
5646 (ENDIAN_SUFFIX): New macro.
5647 (intermediate_encoding): New function.
5648
7b08b9eb
JK
56492011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5650
5651 * ada-lang.c (struct add_partial_datum): Update the comment for
5652 expand_partial_symbol_name.
5653 (ada_add_partial_symbol_completions): Rename to ...
5654 (ada_expand_partial_symbol_name): ... here, change return type, update
5655 function comment, call symbol_completion_match instead of
5656 symbol_completion_add.
5657 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5658 and ada_expand_partial_symbol_name.
5659 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5660 FILE_MATCHER.
5661 (dw2_map_symbol_names): Remove.
5662 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5663 * psymtab.c (map_symbol_names_psymtab): Remove.
5664 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5665 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5666 order.
5667 (psym_functions): Unlist map_symbol_names_psymtab.
5668 (map_partial_symbol_names): Rename to ...
5669 (expand_partial_symbol_names): ... here, change the FUN type, call
5670 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5671 * psymtab.h (map_partial_symbol_names): Rename to ...
5672 (expand_partial_symbol_names): ... here, change the FUN type.
5673 * symfile.h (struct quick_symbol_functions): Update the description of
5674 expand_symtabs_matching. Remove map_symbol_names.
5675 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5676 (struct add_name_data): Update the comment for
5677 expand_partial_symbol_name.
5678 (add_partial_symbol_name): Rename to ...
5679 (expand_partial_symbol_name): ... here. Replace
5680 completion_list_add_name call by strncmp.
5681 (default_make_symbol_completion_list_break_on): Use now
5682 expand_partial_symbol_names and expand_partial_symbol_name.
5683 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5684
90476074
TT
56852011-04-20 Tom Tromey <tromey@redhat.com>
5686
5687 * dwarf2read.c (save_gdb_index_command): Replace format
5688 documentation with a pointer to the manual.
5689
c21236dc
PA
56902011-04-20 Pedro Alves <pedro@codesourcery.com>
5691
5692 * regcache.c: Include remote.h.
5693 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5694 (regcache_dump): Handle regcache_dump_remote.
5695 (maintenance_print_remote_registers): New function.
5696 (_initialize_regcache): Install "maint print remote-registers"
5697 command.
5698 * remote.c (map_regcache_remote_table): New function, factored out
5699 from ...
5700 (init_remote_state): ... here.
5701 (remote_register_number_and_offset): New.
5702 * remote.h (remote_register_number_and_offset): Declare.
5703
b78974c3
PA
57042011-04-20 Pedro Alves <pedro@codesourcery.com>
5705
5706 * regcache.c (get_thread_arch_regcache): If creating a regcache for
5707 null_ptid, assume and allow a NULL address space, instead of
5708 asking the target for the ptid's address space.
5709 * infrun.c (ptid_is_pid): Remove assertion.
5710
7a9dd1b2
TT
57112011-04-19 Tom Tromey <tromey@redhat.com>
5712
5713 * windows-tdep.c (windows_xfer_shared_library):
5714 * windows-nat.c (get_module_name, windows_make_so):
5715 * v850-tdep.c (v850_handle_pushm):
5716 * utils.c (null_cleanup, gdb_realpath):
5717 * ui-out.c (get_next_header):
5718 * tracepoint.c (clear_traceframe_info):
5719 * symtab.c (lookup_symtab):
5720 * serial.h (struct serial_ops):
5721 * mipsread.c (read_alphacoff_dynamic_symtab):
5722 * infcmd.c (print_return_value):
5723 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5724 * f-exp.y (parse_number):
5725 * exceptions.c (catch_exceptions):
5726 * dummy-frame.c (dummy_frame_this_id):
5727 * defs.h (struct cleanup):
5728 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5729 * arm-tdep.c (arm_push_dummy_call):
5730 * amd64-tdep.h (amd64_collect_xsave):
5731 * amd64-tdep.c (amd64_collect_xsave):
5732 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5733 * README (typing): Remove duplicate words.
5734 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5735 * infrun.c (siginfo_value_read): Fix typo.
5736 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5737 * top.c (source_line_number): Add comma.
5738
9941e0c5
MK
57392011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
5740
5741 * thread.c (any_live_thread_of_process): Prioritize threads
5742 that are not executing.
5743 * gdbthread.h (any_live_thread_of_process): Update comment
5744 as per above change.
5745
ed4b0e6a
AS
57462011-04-19 Andreas Schwab <schwab@linux-m68k.org>
5747
5748 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5749 (scan_xcoff_symtab): Likewise.
5750
9b13a2db
PM
57512011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5752
5753 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5754 inside if clause.
5755
1c6e1b0d
PM
57562011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5757 Pedro Alves <pedro@codesourcery.com>
5758
5759 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5760 variables to simplify code and avoid == operator at end of
5761 line as this is against GNU coding standards.
5762
74de0234
PM
57632011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5764
5765 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5766 lm_name to name_lm to avoid conflict with lm_name function.
5767
b23518f0
PM
57682011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5769
5770 ARI fixes: Use only lowercase function name for static functions.
5771 * nto-tdep.c (LM_ADDR): Rename to...
5772 (lm_addr): New function name.
5773 (nto_relocate_section_addresses): Adapt to change above.
5774 * solib-sunos.c (LM_ADDR): Rename to...
5775 (lm_addr): New function name.
5776 (LM_NEXT): Rename to...
5777 (lm_next): New function name.
5778 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5779 function name changes above.
5780 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5781 (lm_addr_from_link_map): New function name.
5782 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5783 (has_lm_dynamic_from_link_map): New function name.
5784 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5785 (lm_dynamic_from_link_map): New function name.
5786 (LM_ADDR_CHECK): Rename to...
5787 (lm_addr_check): New function name.
5788 (LM_NEXT): Rename to...
5789 (lm_next): New function name.
5790 (LM_PREV): Rename to...
5791 (lm_prev): New function name.
5792 (LM_NAME): Rename to...
5793 (lm_name): New function name.
5794 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5795 (ignore_first_link_map_entry): New function name.
5796 (svr4_keep_data_in_core): Adapt to function name changes above.
5797 (svr4_current_sos): Likewise.
5798 (enable_break): Likewise.
5799 (svr4_relocate_section_addresses): Likewise.
5800
1448a0a2
PM
58012011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5802
5803 ARI cleanup.
5804 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5805 sprintf. Simplify code and avoid loosing memory.
5806 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5807 (call0_frame_cache): Remove && operator from end of line.
5808
02835898
JK
58092011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5810
5811 Fix libraries displacement if they change whether they were prelinked.
5812 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5813 does not match. Comment why.
5814
9a845ea2
JK
58152011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5816
5817 * corelow.c: Include wrapper.h.
5818 (core_open): Call now gdb_target_find_new_threads.
5819 * wrapper.c: Include target.h.
5820 (gdb_target_find_new_threads): New.
5821 * wrapper.h (gdb_target_find_new_threads): New declaration.
5822
254f582e
JK
58232011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5826 even if !TARGET_HAS_EXECUTION.
5827
63524580
JK
58282011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5829
5830 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5831 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5832 bfd_get_synthetic_symtab.
5833 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5834 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5835 parameter parent, remove the call to add_separate_debug_objfile.
5836 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5837 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5838 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5839 parent, new comment for it, call add_separate_debug_objfile for it.
5840 (symbol_file_add_separate): Pass objfile as the parameter parent,
5841 remove the call to add_separate_debug_objfile.
5842 (symbol_file_add_from_bfd): New parameter parent, pass it.
5843 (symbol_file_add): Pass NULL to the new parameter parent.
5844 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5845
90359a16
JK
58462011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5847
5848 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5849 BSF_SYNTHETIC.
5850
626e7282
JK
58512011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5852
5853 Fix Python access to inlined frames.
5854 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5855 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5856
cf31e6f9
TT
58572011-04-15 Tom Tromey <tromey@redhat.com>
5858
5859 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5860
c8d895f1
GB
58612011-04-15 Gary Benson <gbenson@redhat.com>
5862
5863 * MAINTAINERS: Add myself to write-after-approval section.
5864
56a9aa1d
MF
58652011-04-14 Mike Frysinger <vapier@gentoo.org>
5866
5867 * remote-sim.c (sim_command_completer): New function.
5868 (_initialize_remote_sim): Set completer to sim_command_completer.
5869
ba770c9c
TJB
58702011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5871
5872 * breakpoint.c (print_exception_catchpoint): Rename to ...
5873 (print_it_exception_catchpoint): ... this.
5874 (gnu_v3_exception_catchpoint_ops): Update with new name
5875 for print_it_exception_catchpoint.
5876
51bf2553
EBM
58772011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
5878
5879 * MAINTAINERS: Add myself for write after approval privileges.
5880
d242658c
MP
58812011-04-13 Marek Polacek <mpolacek@redhat.com>
5882
5883 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5884
4a4106ca
TJB
58852011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5886
5887 * breakpoint.c (watch_command_1): Remove colon from exp_string.
5888
26063d49
TJB
58892011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5890
5891 * breakpoint.c (save_breakpoints): Verify whether
5892 breakpoint_ops.print_recreate is defined before calling it.
5893
7782b183
GB
58942011-04-11 Gary Benson <gbenson@redhat.com>
5895
5896 Fix failure with --enable-maintainer-mode.
5897 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5898
e8930875
JK
58992011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5900
5901 Code cleanup.
5902 * symtab.c (search_symbols): Reorder the KIND description in the
5903 function comment. Remove the unused 4th element of types, types2,
5904 types3 and types4. New gdb_assert on KIND.
5905 (symtab_symbol_info): Remove the unused 4th element of classnames.
5906 New gdb_assert on KIND.
5907 * symtab.h (enum search_domain): New warning in the enum comment.
5908 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5909 TYPES_DOMAIN.
5910
b4f2f049
JK
59112011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5912
5913 Fix crash of gdb save-index on a STABS file.
5914 * dwarf2read.c (write_psymtabs_to_index): Return also on no
5915 PSYMTABS_ADDRMAP.
5916
60d5a603
JK
59172011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5918
5919 Fix DW_AT_accessibility compatibility with gcc-4.6+.
5920 * dwarf2read.c: Include ctype.h.
5921 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5922 functions.
5923 (dwarf2_add_field): Fix new_field->accessibility by calling
5924 dwarf2_default_access_attribute. Restructure setting accessibility
5925 vs. virtuality.
5926 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
5927 is_private and is_protected by calling
5928 dwarf2_default_access_attribute.
5929
e0f68161
KB
59302011-04-08 Kevin Buettner <kevinb@redhat.com>
5931
5932 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5933 to the initialization.
5934
2e1aae43
SE
59352011-04-08 Steve Ellcey <sje@cup.hp.com>
5936
5937 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5938 initalization.
5939
c6ca3dab
PM
59402011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
5941
5942 Remove support for old Cygwin 1.5 versions.
5943 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5944 function on old Cygwin version.
5945 * windows-nat.c: Remove cygwin version check and always define
5946 __USEWIDE for Cygwin compilation.
5947
bd18283a
YQ
59482011-04-07 Yao Qi <yao@codesourcery.com>
5949
5950 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5951 and TO.
5952 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5953 (arm_copy_svc): Remove parameters INSN and TO.
5954 (decode_svc_copro): Update caller.
5955 * arm-tdep.h (struct displaced_step_closure): Remove parameters
5956 from function pointer `copy_svc_os'.
5957
8c8dba6d
YQ
59582011-04-07 Yao Qi <yao@codesourcery.com>
5959
5960 * arm-tdep.c (cleanup_branch): Set a correct return address in
5961 LR for ARM and Thumb.
5962
59d7bcaf
JK
59632011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5964
5965 Code cleanup.
5966 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5967 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5968 in the function comment, a new note on values compatibility.
5969 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5970 * symtab.h (SYMBOL_HASH_NEXT): New.
5971
e7db58ea
TJB
59722011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
5973
5974 * ppc-linux-nat.c (check_condition): Add len output parameter.
5975 Set it based on the memory region referenced in the condition
5976 expression. Update all callers.
5977
9f743ef6
JK
59782011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5979
5980 Fix crash regression on systems featuring .gdb_index.
5981 * objfiles.c (free_objfile): Move the
5982 forget_cached_source_info_for_objfile call earlier. Comment it.
5983 Extend the comment for objfile_free_data.
5984
9182c5bc
JK
59852011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5986
5987 Fix regression of displaying the debug format.
5988 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5989 subfile.
5990
04bd08de
TT
59912011-04-04 Tom Tromey <tromey@redhat.com>
5992
5993 * cli/cli-interp.c (struct captured_execute_command_args):
5994 Remove.
5995 (do_captured_execute_command): Remove.
5996 (safe_execute_command): Use TRY_CATCH.
5997 * cli/cli-script.c (struct wrapped_read_command_file_args):
5998 Remove.
5999 (wrapped_read_command_file): Remove.
6000 (script_from_file): Use TRY_CATCH.
6001 * exceptions.c (catch_exception): Remove.
6002 * exceptions.h (catch_exception): Remove.
6003 (deprecated_throw_reason): Update comment.
6004 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6005 argument to 'context'.
6006 (mi_execute_command): Use TRY_CATCH.
6007 * remote.c (struct start_remote_args): Remove.
6008 (remote_start_remote): Update; change arguments.
6009 (remote_open_1): Use TRY_CATCH.
6010
58438ac1
TT
60112011-04-04 Tom Tromey <tromey@redhat.com>
6012
6013 * tracepoint.c (scope_info): Update.
6014 * symtab.c (decode_line_spec): Update.
6015 * python/python.c (gdbpy_decode_line): Update.
6016 * linespec.h (decode_line_1): Update.
6017 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6018 (decode_compound, find_method, symtab_from_filename)
6019 (decode_variable): Likewise.
6020 * cli/cli-cmds.c (edit_command): Update.
6021 (list_command): Update.
6022 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6023 argument.
6024 (create_breakpoint): Update.
6025 (until_break_command): Update.
6026 (addr_string_to_sals): Update.
6027 (decode_line_spec_1): Update.
6028
b78a6381
TT
60292011-04-04 Tom Tromey <tromey@redhat.com>
6030
6031 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6032 (do_captured_parse_breakpoint): Remove.
6033 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6034 Use TRY_CATCH directly.
6035
00174a86
TT
60362011-04-04 Tom Tromey <tromey@redhat.com>
6037
6038 * symtab.h (free_symtab): Remove.
6039 (forget_cached_source_info_for_objfile): Declare.
6040 * symmisc.c (free_symtab): Remove.
6041 * source.c (forget_cached_source_info_for_objfile): New function.
6042 (forget_cached_source_info): Use it.
6043 * objfiles.c (free_objfile): Simplify check before calling
6044 clear_current_source_symtab_and_line. Call
6045 forget_cached_source_info_for_objfile.
6046
30cc903e
TT
60472011-04-04 Tom Tromey <tromey@redhat.com>
6048
6049 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6050 (new_symtab): Don't set `free_code' on symtab.
6051 (new_linetable): Properly handle size==0.
6052 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6053 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6054 free_func.
6055 * jv-lang.c (struct jv_per_objfile_data): New.
6056 (jv_per_objfile_free): Free the data.
6057 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6058 (get_java_class_symtab): Set the `dict' field on the
6059 jv_per_objfile_data.
6060 (free_class_block): Remove.
6061 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6062 the symtab.
6063
0c2e6019
TT
60642011-04-04 Tom Tromey <tromey@redhat.com>
6065
6066 * symfile.c (reread_symbols): Update.
6067 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6068 field.
6069 * objfiles.c (allocate_objfile): Update.
6070 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6071 declare.
6072 * cp-namespace.c (lookup_symbol_file): Don't call
6073 lookup_possible_namespace_symbol.
6074 (initialize_namespace_symtab, get_possible_namespace_block)
6075 (free_namespace_block, cp_check_possible_namespace_symbols)
6076 (check_possible_namespace_symbols_loop)
6077 (check_one_possible_namespace_symbol)
6078 (lookup_possible_namespace_symbol): Remove.
6079 (maintenance_cplus_namespace): Replace with notice.
6080 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6081
554d387d
TT
60822011-04-04 Tom Tromey <tromey@redhat.com>
6083
6084 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6085 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6086 * symmisc.c (free_symtab): Don't free debugformat.
6087 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6088 (record_debugformat, record_producer): Document.
6089 * buildsym.c (end_symtab): Don't save debugformat and producer
6090 names on obstack.
6091 (end_symtab): Don't free debugformat and producer fields.
6092 (record_debugformat): Don't call xstrdup.
6093 (record_producer): Likewise.
6094
d4d4db8a
TT
60952011-04-04 Tom Tromey <tromey@redhat.com>
6096
6097 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6098 (source_line_charpos, source_charpos_line): Remove.
6099
8903c50d
TT
61002011-04-04 Tom Tromey <tromey@redhat.com>
6101
6102 * symtab.h (domain_enum): Split in two...
6103 (enum search_domain): New.
6104 (search_symbols): Update.
6105 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6106 redundant declarations.
6107 (search_symbols): Change 'kind' argument to search_domain.
6108 Update.
6109 (print_symbol_info): Likewise.
6110 (symtab_symbol_info): Likewise.
6111 * symfile.h (struct quick_symbol_functions)
6112 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6113 <expand_symtabs_matching>: Likewise.
6114 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6115 (expand_symtabs_matching_via_partial): Update.
6116 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6117 (dw2_expand_symtabs_for_function): Update.
6118 * block.h: Moved anonymous enum...
6119 * defs.h (enum block_enum): ... here. Now named.
6120
d9351f5f 61212011-04-03 Joel Brobecker <brobecker@adacore.com>
6122
6123 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6124 * version.in: Bump version to 7.3.50.20110403-cvs.
6125
d6e00af6
JB
61262011-04-03 Joel Brobecker <brobecker@adacore.com>
6127
6128 * NEWS: Create a new section for the next release branch.
6129 Rename the section of the current branch, now that it has
6130 been cut.
6131
2b9e5ea6
UW
61322011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6133
6134 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6135 for "fpscr" in target description.
6136
0cf03b49
JK
61372011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6138
6139 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6140 initialize it. Delay HASH initialization. Strip the part after open
6141 parenthesis for languages with qualifiers. Call do_cleanups.
6142
5d901a73
TT
61432011-04-01 Tom Tromey <tromey@redhat.com>
6144
6145 * utils.c (report_command_stats): Don't print `-' for negative
6146 number.
6147
b0dd7688
JB
61482011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6149
6150 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6151 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6152 typedefs.
6153
956a9fb9
JB
61542011-04-01 Joel Brobecker <brobecker@adacore.com>
6155
6156 * breakpoint.h (bpdisp_text): Add declaration.
6157 * breakpoint.c (bpdisp_text): Make non-static.
6158 * ada-lang.c: #include "mi/mi-common.h".
6159 (print_it_exception): Rewrite to improve GDB/MI output.
6160
3352110b
PA
61612011-04-01 Pedro Alves <pedro@codesourcery.com>
6162
6163 * arm-tdep.h (struct address_space): Add forward declaration.
6164
18819fa6
UW
61652011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6166
6167 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6168 * arm-tdep.c (arm_override_mode): New global.
6169 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6170 execution mode heuristics.
6171 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6172 second single-step breakpoint if needed, using
6173 arm_insert_single_step_breakpoint.
6174 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6175 ARM execution mode, do not call thumb_get_next_pc_raw.
6176 (arm_get_next_pc): Encode execution mode in return value. Call
6177 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6178 (arm_insert_single_step_breakpoint): New function.
6179 (arm_software_single_step): Call it.
6180 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6181 argument to return execution mode of sigreturn target.
6182 (arm_linux_syscall_next_pc): Use it.
6183 (arm_linux_copy_svc): Update call.
6184 (arm_linux_software_single_step): Call
6185 arm_insert_single_step_breakpoint.
6186
a6e293d1
JK
61872011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6188
6189 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6190 the comment.
6191
a4c8e806
TT
61922011-03-31 Tom Tromey <tromey@redhat.com>
6193
6194 * varobj.c (update_dynamic_varobj_children): Properly handle
6195 errors from iterator.
6196
df5c6c50
JK
61972011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6198
6199 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6200 struct linkage name twice.
6201
1dae3efc
TT
62022011-03-31 Tom Tromey <tromey@redhat.com>
6203
6204 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6205 missing ">" to message.
6206
f4f7ab05
TT
62072011-03-31 Tom Tromey <tromey@redhat.com>
6208
6209 * varobj.c (instantiate_pretty_printer): Remove duplicate
6210 'return'.
6211
fcf250e2
UW
62122011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6213
6214 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6215 if neither saved value nor register available (e.g. signal frame).
6216
ee6436e3
TJB
62172011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6218
6219 * macroexp.c (expand): Avoid uninitialized variable
6220 compiler warning.
6221
423f41a5
TJB
62222011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6223
6224 * breakpoint.c (break_range_command): Fix typo in comment.
6225
f1310107
TJB
62262011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6227 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6228
6229 Implement support for PowerPC BookE ranged breakpoints.
6230 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6231 * breakpoint.h (struct bp_target_info) <length>: New member
6232 variable.
6233 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6234 instead of struct breakpoint as argument, and also add ASPACE
6235 and BP_ADDR arguments. Update all callers.
6236 (struct breakpoint_ops) <print_one_detail>: New method.
6237 (struct breakpoint) <addr_string_range_end>: New member variable.
6238 * breakpoint.c (breakpoint_location_address_match): Add function
6239 prototype.
6240 (insert_bp_location): Set bl->target_info.length.
6241 (breakpoint_here_p): Call breakpoint_location_address_match.
6242 (moribund_breakpoint_here_p): Likewise.
6243 (regular_breakpoint_inserted_here_p): Likewise.
6244 (breakpoint_thread_match): Likewise.
6245 (bpstat_stop_status): Likewise.
6246 (bpstat_check_location): Move call to
6247 breakpoint_ops.breakpoint_hit to the top.
6248 (print_one_breakpoint_location): Call
6249 breakpoint_ops.print_one_detail if available.
6250 (breakpoint_address_match_range): New function.
6251 (breakpoint_location_address_match): Likewise.
6252 (breakpoint_locations_match): Compare the length field of the
6253 locations too.
6254 (hw_breakpoint_used_count): Count resources used by all locations
6255 in a breakpoint, and use breakpoint_ops.resources_needed if
6256 available.
6257 (breakpoint_hit_ranged_breakpoint): New function.
6258 (resources_needed_ranged_breakpoint): Likewise.
6259 (print_it_ranged_breakpoint): Likewise.
6260 (print_one_ranged_breakpoint): Likewise.
6261 (print_one_detail_ranged_breakpoint): Likewise.
6262 (print_mention_ranged_breakpoint): Likewise.
6263 (print_recreate_ranged_breakpoint): Likewise.
6264 (ranged_breakpoint_ops): New structure.
6265 (find_breakpoint_range_end): New function.
6266 (break_range_command): Likewise.
6267 (delete_breakpoint): Free addr_string_range_end.
6268 (update_breakpoint_locations): Add SALS_END argument. Update
6269 all callers. Calculate breakpoint length if a non-zero SALS_END
6270 is given. Call breakpoint_locations_match instead of
6271 breakpoint_address_match.
6272 (reset_breakpoint): Find SaL of the end of the range if B is a
6273 ranged breakpoint.
6274 (_initialize_breakpoint): Register break-range command.
6275 * defs.h (print_core_address): Add function prototype.
6276 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6277 function.
6278 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6279 (ppc_linux_remove_hw_breakpoint): Likewise.
6280 (_initialize_ppc_linux_nat): Initialize
6281 to_ranged_break_num_registers.
6282 * target.c (update_current_target): Add comment about
6283 to_ranged_break_num_registers.
6284 (target_ranged_break_num_registers): New function.
6285 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6286 New method.
6287 (target_ranged_break_num_registers): Add function prototype.
6288 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6289 * utils.c (print_core_address): ... here.
6290
02d20e4a
UW
62912011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6292
6293 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6294 variable compiler warning.
6295
ef23e705
TJB
62962011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6297
6298 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6299 code from here ...
6300 (re_set_breakpoint): ... to here ...
6301 (addr_string_to_sals): ... and here.
6302
311e6ab3
PM
63032011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6304
6305 * Makefile.in (SFILES): Add missing C sources.
6306 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6307 Add missing headers.
6308
acd1d99c
MF
63092011-03-29 Mike Frysinger <vapier@gentoo.org>
6310
6311 * .gitignore: New file.
6312
66ee2731
MF
63132011-03-29 Mike Frysinger <vapier@gentoo.org>
6314
6315 * NEWS: Mention new cfi device simulation.
6316
53832f31
TT
63172011-03-29 Tom Tromey <tromey@redhat.com>
6318
6319 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6320 otherwise anonymous types.
6321 (dwarf2_name): Likewise.
6322 * valops.c (value_struct_elt_for_reference): Refine artificial
6323 type logic. Call error if j==-1.
6324
09b58708
JK
63252011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6326
6327 Fix false GCC warning.
6328 * infcall.c (find_function_addr): Initialize funaddr.
6329
6023c606
PM
63302011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6331
6332 Fix mingw compilation with --enable-targets=all.
6333 * remote-mips.c (gdb_usleep.h): Include header.
6334 (mips_enter_debug): Use gdb_usleep instead of sleep.
6335
0e30163f
JK
63362011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 Support resolution of STT_GNU_IFUNC via breakpoints.
6339 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6340 bp_gnu_ifunc_resolver_return.
6341 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6342 the loop. Support bp_gnu_ifunc_resolver and
6343 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6344 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6345 breakpoints.
6346 (bptype_string, print_one_breakpoint_location): Support
6347 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6348 (user_settable_breakpoint): Return true also for
6349 bp_gnu_ifunc_resolver.
6350 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6351 bp_gnu_ifunc_resolver_return.
6352 (set_breakpoint_location_function): New parameter explicit_loc,
6353 describe it. Call find_pc_partial_function_gnu_ifunc with new
6354 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6355 EXPLICIT_LOC is not set.
6356 (set_raw_breakpoint): Set EXPLICIT_LOC for
6357 set_breakpoint_location_function.
6358 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6359 set_breakpoint_location_function.
6360 (mention): Support bp_gnu_ifunc_resolver and
6361 bp_gnu_ifunc_resolver_return.
6362 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6363 set_breakpoint_location_function.
6364 (update_breakpoint_locations): Remove static.
6365 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6366 bp_gnu_ifunc_resolver_return.
6367 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6368 bp_gnu_ifunc_resolver_return.
6369 (update_breakpoint_locations): New declaration.
6370 * elfread.c: Include gdbthread.h and regcache.h.
6371 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6372 functions.
6373 (elf_gnu_ifunc_fns): Install them.
6374 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6375 (stub_gnu_ifunc_resolver_return_stop): New functions.
6376 (stub_gnu_ifunc_fns): Install them.
6377 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6378 and gnu_ifunc_resolver_return_stop.
6379 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6380
07be84bf
JK
63812011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6382
6383 STT_GNU_IFUNC reader implementation.
6384 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6385 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6386 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6387 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6388 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6389 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6390 (elf_gnu_ifunc_resolve_addr): New.
6391 (elf_symfile_read): Call elf_rel_plt_read.
6392 (elf_gnu_ifunc_fns): New.
6393 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6394 Install elf_gnu_ifunc_fns.
6395 * infcall.c (find_function_return_type): New function.
6396 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6397 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6398 (stub_gnu_ifunc_resolve_name): New functions.
6399 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6400 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6401 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6402
300f8e10
JK
64032011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 Code cleanup for later STT_GNU_IFUNC support.
6406 * infcall.c (find_function_addr): Remove variable code, use explicit
6407 dereferences for it. Move VALUE_TYPE initialization later.
6408
11c81455
JK
64092011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6412 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6413 (clear_pc_function_cache): Clear it.
6414 (find_pc_partial_function): Rename to ...
6415 (find_pc_partial_function_gnu_ifunc): ... this function. New
6416 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6417 (find_pc_partial_function): New wrapper for this function.
6418 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6419
0875794a
JK
64202011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6421
6422 GDB internal type support for STT_GNU_IFUNC.
6423 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6424 (elf_symtab_read): Set mst_text_gnu_ifunc for
6425 BSF_GNU_INDIRECT_FUNCTION.
6426 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6427 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6428 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6429 nodebug_got_plt_symbol.
6430 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6431 (TYPE_GNU_IFUNC): New.
6432 (struct main_type): New field flag_gnu_ifunc.
6433 (struct builtin_type): New field builtin_func_func.
6434 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6435 nodebug_got_plt_symbol.
6436 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6437 (in_gnu_ifunc_stub): New.
6438 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6439 mst_text_gnu_ifunc.
6440 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6441 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6442 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6443 in_gnu_ifunc_stub.
6444 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6445 * symtab.c (search_symbols): Likewise.
6446 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6447 and mst_slot_got_plt.
6448 (in_gnu_ifunc_stub): New declaration.
6449
d0fb5eae
JK
64502011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6451
6452 Support a ring of related breakpoints.
6453 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6454 other functions, add gdb_assert.
6455 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6456 watchpoint_del_at_next_stop.
6457 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6458 (bpstat_stop_status): Handle ring in related_breakpoint.
6459 (set_raw_breakpoint_without_location): Initialize ring in
6460 related_breakpoint.
6461 (delete_breakpoint): Handle ring in related_breakpoint, use
6462 watchpoint_del_at_next_stop.
6463 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6464
9cded63f
TT
64652011-03-28 Tom Tromey <tromey@redhat.com>
6466
6467 PR symtab/12441:
6468 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6469 with `language_minimal'.
6470
467d42c4
UW
64712011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6472
6473 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6474 instead of checking for STT_ARM_TFUNC symbol type.
6475
62853458
TT
64762011-03-25 Tom Tromey <tromey@redhat.com>
6477
6478 * linespec.c (symbol_found): Restore line-based result for
6479 non-LOC_LABEL symbols.
6480
a7417d46
KT
64812011-03-25 Kai Tietz <ktietz@redhat.com>
6482
6483 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6484 instead of strcmp for comparison.
6485 (tui_source_is_displayed): Likewise.
6486 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6487
55f1336d
TT
64882011-03-24 Mark Wielaard <mjw@redhat.com>
6489
f33edef8
PP
6490 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6491 complaint.
6492 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6493 (find_partial_die_in_comp_unit): Likewise in comment.
6494 (read_attribute_value): Likewise.
6495 (lookup_die_type): Likewise.
6496 (dwarf_form_name): Likewise.
6497 (dump_die_shallow): Likewise.
6498 (follow_die_ref_or_sig): Likewise.
55f1336d 6499
9ef07c8c
TT
65002011-03-24 Tom Tromey <tromey@redhat.com>
6501
6502 PR breakpoints/11816:
6503 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6504 (decode_compound): Update.
6505 (find_function_symbol): New function.
6506 (decode_dollar): Update.
6507 (decode_label): Add 'function_symbol' parameter. Handle
6508 function-relative labels.
6509 (decode_variable): Update.
6510 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6511 not its line. Set `special_display' and canonical name for
6512 labels.
6513
56435ebe
TT
65142011-03-24 Tom Tromey <tromey@redhat.com>
6515
6516 * linespec.h (struct linespec_result) <special_display>: New
6517 field.
6518 * breakpoint.h (struct breakpoint) <display_canonical>: New
6519 field.
6520 * breakpoint.c (print_breakpoint_location): Respect
6521 display_canonical.
6522 (create_breakpoint_sal): Add 'display_canonical' parameter.
6523 (create_breakpoints_sal): Update.
6524 (create_breakpoint): Update.
6525
7efd8fc2
TT
65262011-03-24 Tom Tromey <tromey@redhat.com>
6527
6528 * symtab.c (decode_line_spec): Update.
6529 * linespec.c (build_canonical_line_spec): Change type of
6530 'canonical'.
6531 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6532 (find_method, decode_all_digits, decode_dollar, decode_label)
6533 (symbol_found): Likewise.
6534 (init_linespec_result): New function.
6535 * breakpoint.c (struct captured_parse_breakpoint_args)
6536 <canonical_p>: New field, replaces addr_string_p.
6537 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6538 'addr_string'.
6539 (parse_breakpoint_sals): Likewise.
6540 (do_captured_parse_breakpoint): Update.
6541 (create_breakpoint): Use struct linespec_result.
6542 (until_break_command): Update.
6543 (breakpoint_re_set_one): Update.
6544 (decode_line_spec_1): Update.
6545 * linespec.h (struct linespec_result): New.
6546 (init_linespec_result): Declare.
6547
788c8b10
PA
65482011-03-23 Pedro Alves <pedro@codesourcery.com>
6549
6550 * regcache.c (regcache_raw_read): If the target didn't supply a
6551 given raw register, mark it as unavailable.
6552
0ba1096a
KT
65532011-03-23 Kai Tietz <ktietz@redhat.com>
6554
6555 * breakpoint.c (clear_command): Use filename_cmp
6556 instead of strcmp for comparison.
6557 * buildsym.c (watch_main_source_file_lossage): Likewise.
6558 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6559 checking just for slash.
6560 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6561 strrchr and filename_cmp instead of strcmp for filenames.
6562 (add_old_header_file): Use filename_cmp
6563 instead of strcmp for comparison.
6564 * exec.c (exec_set_section_address): Likewise.
6565 * macrotab.c (macro_lookup_inclusion): Likewise.
6566 (macro_lookup_inclusion): Likewise.
6567 * elfread.c (_initialize_elfread): Likewise.
6568 (elfstab_offset_sections): Likewise.
6569 (elfstab_offset_sections): Use lbasename instead of
6570 strrchr.
6571 * mdebugread.c (parse_partial_symbols): Likewise.
6572 (arse_partial_symbols): Use filename_(n)cmp instead of
6573 str(n)cmp for comparison.
6574 * minsyms.c (lookup_minimal_symbol): Likewise.
6575 * psymtab.c (read_psymtabs_with_filename): Likewise.
6576 * solib.c (solib_read_symbols): Likewise.
6577 (reload_shared_libraries_1): Likewise.
6578 * symmisc.c (maintenance_print_symbols): Likewise.
6579 * symfile.c (separate_debug_file_exists): Likewise.
6580 (reread_symbols): Likewise.
6581 (find_separate_debug_file_by_debuglink): Likewise.
6582 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6583 * source.c (add_path): Likewise.
6584 * symtab.c (filename_seen): Likewise.
6585 (file_matches): Likewise.
6586 (print_symbol_info): Likewise.
6587 (maybe_add_partial_symtab_filename): Likewise.
6588 (make_source_files_completion_list): Likewise.
6589 * xml-syscall.c (init_sysinfo): Likewise.
6590 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6591 IS_DIR_SEPARATOR for checking for trailing path separator.
6592
dd90784c
JK
65932011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6594
6595 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6596 label abort_expression.
6597 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6598 DWARF_VALUE_OPTIMIZED_OUT.
6599
3167638f
JK
66002011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 Code cleanup.
6603 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6604 to linkage_name. Invert its value. Update the function comment.
6605 (c_type_print_varspec_suffix): Invert it at the caller.
6606 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6607
ce406537
PA
66082011-03-22 Pedro Alves <pedro@codesourcery.com>
6609
6610 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6611 errors when reading the `stop_pc'.
6612 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6613 get_frame_pc.
6614
da5d4055
PM
66152011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6616
6617 * NEWS: Document gdb.Write stream keyword.
6618
29e0eb9c
JK
66192011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6620
6621 Revert:
6622 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6623 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6624 (dwarf2_add_field): Fix new_field->accessibility for
6625 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6626
05775840
PM
66272011-03-22 Phil Muldoon <pmuldoon@redhat.com>
6628
f33edef8 6629 PR python/12183
05775840
PM
6630
6631 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6632 other error classes. Do not print stack trace.
6633
a0cb7835
JK
66342011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6635
6636 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6637 (dwarf2_add_field): Fix new_field->accessibility for
6638 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6639
d19f7eee
UW
66402011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
6641
6642 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6643 encountering a load via a non-SP register.
6644
4a2fbb50
UW
66452011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6646
6647 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6648 field in returned unwinder.
6649
3489610d
JB
66502012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6651
6652 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6653
8c1a34e7
JB
66542012-03-21 Joel Brobecker <brobecker@adacore.com>
6655
6656 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6657 of xmalloc.
6658
8fbca658
PA
66592012-03-18 Pedro Alves <pedro@codesourcery.com>
6660
6661 * frame.c (frame_unwind_register): Throw an error if unwinding the
6662 register failed.
6663 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6664 an unwind stop reason.
6665 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6666 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6667 UNWIND_UNAVAILABLE>: New.
6668 * inline-frame.c (inline_frame_unwind): Install
6669 default_frame_unwind_stop_reason.
6670 * frame-unwind.c: Include "exceptions.h".
6671 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6672 (default_frame_unwind_stop_reason): New.
6673 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6674 (default_frame_unwind_stop_reason): Declare.
6675 (struct frame_unwind) <stop_reason>: New function pointer.
6676
6677 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6678 * dwarf2-frame.c: Include exceptions.h.
6679 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6680 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6681 computing the CFA. If such an error was thrown, set
6682 unavailable_retaddr.
6683 (dwarf2_frame_unwind_stop_reason): New.
6684 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6685 unavailable.
6686 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6687 (dwarf2_signal_frame_unwind): Ditto.
6688
6689 * amd64-tdep.c: Include "exceptions.h".
6690 (struct amd64_frame_cache): New field "base_p".
6691 (amd64_init_frame_cache): Clear it.
6692 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6693 Avoid reading registers with functions that throw if the register
6694 is not necessary to compute the frame base.
6695 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6696 swallowing NOT_AVAILABLE_ERROR.
6697 (amd64_frame_unwind_stop_reason): New.
6698 (amd64_frame_this_id): Don't build a frame id if the frame base
6699 was unavailable.
6700 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6701 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6702 base_p if the frame base was computable.
6703 (amd64_sigtramp_frame_unwind_stop_reason): New.
6704 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6705 frame base was unavailable.
6706 (amd64_sigtramp_frame_unwind): Install
6707 amd64_sigtramp_frame_unwind_stop_reason.
6708 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6709 base_p if the frame base was computable.
6710 (amd64_epilogue_frame_unwind_stop_reason): New.
6711 (amd64_epilogue_frame_this_id): Don't build a frame id if the
6712 frame base was unavailable.
6713 (amd64_epilogue_frame_unwind): Install
6714 amd64_epilogue_frame_unwind_stop_reason.
6715 * i386-tdep.c: Include "exceptions.h".
6716 (struct i386_frame_cache): New field "base_p".
6717 (i386_init_frame_cache): Clear it.
6718 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6719 Avoid reading registers with functions that throw if the register
6720 is not necessary to compute the frame base.
6721 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6722 swallowing NOT_AVAILABLE_ERROR.
6723 (i386_frame_unwind_stop_reason): New.
6724 (i386_frame_this_id): Don't build a frame id if the frame base was
6725 unavailable.
6726 (i386_frame_prev_register): Handle unavailable SP.
6727 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6728 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6729 base_p if the frame base was computable.
6730 (i386_epilogue_frame_unwind_stop_reason): New.
6731 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6732 base was unavailable.
6733 (i386_epilogue_frame_unwind): Install
6734 i386_epilogue_frame_unwind_stop_reason.
6735 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6736 base_p if the frame base was computable.
6737 (i386_sigtramp_frame_unwind_stop_reason): New.
6738 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6739 base was unavailable.
6740 (i386_sigtramp_frame_unwind): Install
6741 i386_sigtramp_frame_unwind_stop_reason.
6742 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6743 type's size, not the register's.
6744 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6745
6746 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6747 default_frame_unwind_stop_reason.
6748 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6749 (alpha_heuristic_frame_unwind): Ditto.
6750 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6751 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6752 * avr-tdep.c (avr_frame_unwind): Ditto.
6753 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6754 Ditto.
6755 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6756 * frv-tdep.c (frv_frame_unwind): Ditto.
6757 * h8300-tdep.c (h8300_frame_unwind): Ditto.
6758 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6759 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6760 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6761 (hppa_stub_frame_unwind): Ditto.
6762 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6763 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6764 (ia64_libunwind_frame_unwind)
6765 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6766 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6767 * lm32-tdep.c (lm32_frame_unwind): Ditto.
6768 * m32c-tdep.c (m32c_unwind): Ditto.
6769 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6770 * m32r-tdep.c (m32r_frame_unwind): Ditto.
6771 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6772 * m68k-tdep.c (m68k_frame_unwind): Ditto.
6773 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6774 * m88k-tdep.c (m88k_frame_unwind): Ditto.
6775 * mep-tdep.c (mep_frame_unwind): Ditto.
6776 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6777 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6778 (mips_stub_frame_unwind): Ditto.
6779 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6780 * moxie-tdep.c (moxie_frame_unwind): Ditto.
6781 * mt-tdep.c (mt_frame_unwind): Ditto.
6782 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6783 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6784 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6785 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6786 (s390_sigtramp_frame_unwind): Ditto.
6787 * score-tdep.c (score_prologue_unwind): Ditto.
6788 * sh-tdep.c (sh_frame_unwind): Ditto.
6789 * sh64-tdep.c (sh64_frame_unwind): Ditto.
6790 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6791 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6792 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6793 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6794 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6795 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6796 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6797 (sparc64obsd_trapframe_unwind): Ditto.
6798 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6799 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6800 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6801 * v850-tdep.c (v850_frame_unwind): Ditto.
6802 * vax-tdep.c (vax_frame_unwind): Ditto.
6803 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6804 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6805 * xtensa-tdep.c (xtensa_unwind): Ditto.
6806
f23d1b92
PA
68072011-03-18 Pedro Alves <pedro@codesourcery.com>
6808
6809 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6810 there's always a frame. Use get_frame_pc_if_available instead of
6811 get_frame_pc, and if there's no PC available, don't look up a
6812 symtab.
6813
1d4f5741
PA
68142011-03-18 Pedro Alves <pedro@codesourcery.com>
6815
6816 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6817 unavailable PC.
6818
dba09041
PA
68192011-03-18 Pedro Alves <pedro@codesourcery.com>
6820
6821 * tracepoint.c (set_traceframe_context): Handle unavailable PC
6822 gracefully.
6823
9a26e44c
PA
68242011-03-18 Pedro Alves <pedro@codesourcery.com>
6825
6826 * frame.h (frame_unwind_caller_pc_if_available): Declare.
6827 * frame.c (frame_unwind_caller_pc_if_available): New.
6828 * stack.c (frame_info): Handle unavailable PC.
6829
68302011-03-18 Pedro Alves <pedro@codesourcery.com>
6831
6832 * frame.c (frame_unwind_pc): Rename to ...
6833 (frame_unwind_pc_if_available): ... this. New `pc' output
6834 parameter. Change return type to int. Gracefully handle
6835 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
6836 happened, or 1 otherwise.
6837 (frame_unwind_pc): Reimplement on top of
6838 frame_unwind_pc_if_available.
6839 (get_frame_func): Rename to ...
6840 (get_frame_func_if_available): New `pc' output parameter. Change
6841 return type to int. Gracefully handle the PC not being available.
6842 (get_frame_func): Reimplement on top of
6843 get_frame_func_if_available.
6844 (select_frame): Handle the PC being unavailable.
6845 (get_prev_frame): Handle the PC being unavailable.
6846 (get_frame_pc_if_available): New.
6847 (get_frame_address_in_block_if_available): New.
6848 (find_frame_sal): Handle the frame PC not being available.
6849 * frame.h (get_frame_pc_if_available): Declare.
6850 (get_frame_address_in_block_if_available): Declare.
6851 (get_frame_func_if_available): Declare.
6852 * stack.c (print_frame_info): Handle the PC being unavailable.
6853 (find_frame_funname): Ditto.
6854 (print_frame): Handle the PC being unavailable.
6855 (get_frame_language): Ditto.
6856 * blockframe.c (get_frame_block): Ditto.
6857 * macroscope.c (default_macro_scope): Ditto.
6858 * tui/tui-stack.c (tui_show_frame_info): Ditto.
6859
68602011-03-18 Pedro Alves <pedro@codesourcery.com>
6861
6862 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6863 NOT_AVAILABLE_ERROR when evaluating the location expression.
6864
68652011-03-18 Pedro Alves <pedro@codesourcery.com>
6866
6867 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6868 returning that the register piece is unavailable/optimized out.
6869 (write_pieced_value): Handle get_frame_register_bytes returning
6870 that the register piece is unavailable/optimized out when doing a
6871 read-modify write of a bitfield.
6872 * findvar.c (value_from_register): Handle get_frame_register_bytes
6873 returning that the register piece is unavailable/optimized out.
6874 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6875 and `unavailablep'. Throw error on bad debug info. Use
6876 frame_register instead of frame_register_read, to fill in the new
6877 arguments.
6878 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6879 and `unavailablep'.
6880 * valops.c: (value_assign): Adjust, and handle
6881 get_frame_register_bytes failing.
6882 * spu-tdep.c: Include exceptions.h.
6883 (spu_software_single_step): Adjust, and handle
6884 get_frame_register_bytes failing.
6885 (spu_get_longjmp_target): Ditto.
6886 * gdbarch.sh (register_to_value): Change to return int. New
6887 parameters `optimizedp' and `unavailablep'.
6888 * gdbarch.h, gdbarch.c: Regenerate.
6889 * i386-tdep.c (i386_register_to_value): Adjust to new
6890 gdbarch_register_to_value interface.
6891 * i387-tdep.c (i387_register_to_value): Ditto.
6892 * i387-tdep.h (i387_register_to_value): Ditto.
6893 * alpha-tdep.c (alpha_register_to_value): Ditto.
6894 * ia64-tdep.c (ia64_register_to_value): Ditto.
6895 * m68k-tdep.c (m68k_register_to_value): Ditto.
6896 * mips-tdep.c (mips_register_to_value): Ditto.
6897 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6898
0fdb4f18
PA
68992011-03-18 Pedro Alves <pedro@codesourcery.com>
6900
6901 * findvar.c (value_of_register): Mark the value as unavailable, if
6902 the register is unavailable.
6903 * frame.h (frame_register_unwind): New `unavailablep' parameter.
6904 (frame_register): New `unavailablep' parameter.
6905 (frame_register_read): Update comment.
6906 * frame.c (frame_register_unwind): New `unavailablep' parameter.
6907 Set it if the register is unavailable. If the register is
6908 unavailable, clear the output buffer.
6909 (frame_register): New `unavailablep' parameter. Pass it down.
6910 (frame_unwind_register): Adjust.
6911 (put_frame_register): Adjust.
6912 (frame_register_read): Adjust. Also return false if the register
6913 is not available.
6914 (frame_register_unwind_location): Adjust.
6915 * sentinel-frame.c (sentinel_frame_prev_register): If the register
6916 is unavailable, mark the value accordingly.
6917 * stack.c (frame_info): Handle unavailable registers.
6918
e69aa73e
PA
69192011-03-18 Pedro Alves <pedro@codesourcery.com>
6920
6921 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6922 simplify, using regcache_cooked_read.
6923
05d1431c
PA
69242011-03-18 Pedro Alves <pedro@codesourcery.com>
6925
6926 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6927 (regcache_raw_read_unsigned, regcache_raw_read_signed)
6928 (regcache_raw_read_unsigned, regcache_raw_read_part)
6929 (regcache_cooked_read, regcache_cooked_read_signed)
6930 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6931 (regcache_cooked_read_ftype): Change return to enum
6932 register_status.
6933 * regcache.c: Include exceptions.h
6934 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6935 (do_cooked_read): Change return to enum register_status. Always
6936 forward to regcache_cooked_read.
6937 (regcache_raw_read): Change return to enum register_status. If
6938 the register is not REG_VALID, memset the buffer. Return the
6939 register's status.
6940 (regcache_raw_read_signed): Handle non-REG_VALID registers and
6941 return the register's status.
6942 (regcache_raw_read_unsigned): Ditto.
6943 (regcache_cooked_read): Change return to enum register_status.
6944 Assert that with read-only regcaches, the register's status must
6945 be known. If the regcache is read-only, and the register is not
6946 REG_VALID, memset the buffer. Return the register's status.
6947 (regcache_cooked_read_signed): Change return to enum
6948 register_status. Handle non-REG_VALID registers and return the
6949 register's status.
6950 (regcache_cooked_read_unsigned): Change return to enum
6951 register_status. Handle non-REG_VALID registers and return the
6952 register's status.
6953 (regcache_xfer_part, regcache_raw_read_part)
6954 (regcache_cooked_read_part): Change return to enum
6955 register_status. Return the register's status.
6956 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6957 unavailable.
6958 (regcache_dump): Handle unavailable cooked registers.
6959 * frame.c (do_frame_register_read): Adjust interface to match
6960 regcache_cooked_read_ftype.
6961 * gdbarch.sh (pseudo_register_read): Change return to enum
6962 register_status.
6963 * gdbarch.h, gdbarch.c: Regenerate.
6964
6965 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6966 register_status.
6967 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6968 register_status. If reading a raw register indicates the raw
6969 register is not valid, return the raw register's status,
6970 otherwise, return REG_VALID.
6971 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6972 register_status. Handle non-REG_VALID raw registers and return
6973 the register's status.
6974 * arm-tdep.c (arm_neon_quad_read)
6975 (arm_pseudo_read): Change return to enum register_status. Handle
6976 non-REG_VALID raw registers and return the register's status.
6977 * avr-tdep.c (avr_pseudo_register_read): Ditto.
6978 * frv-tdep.c (frv_pseudo_register_read): Ditto.
6979 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6980 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6981 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6982 register_status.
6983 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6984 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6985 (m32c_part_write, m32c_cat_read, m32c_cat_write)
6986 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6987 (m32c_pseudo_register_read): Change return to enum
6988 register_status. Adjust.
6989 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6990 enum register_status. Return the register's status.
6991 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6992 register_status. Return the register's status.
6993 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6994 * mips-tdep.c (mips_pseudo_register_read): Ditto.
6995 * mt-tdep.c (mt_pseudo_register_read): Ditto.
6996 * rs6000-tdep.c (move_ev_register_func): New typedef.
6997 (e500_move_ev_register): Use it. Change return to enum
6998 register_status. Return the register's status.
6999 (do_regcache_raw_read): New function.
7000 (do_regcache_raw_write): New function.
7001 (e500_pseudo_register_read): Change return to enum
7002 register_status. Return the register's status. Use
7003 do_regcache_raw_read.
7004 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7005 (dfp_pseudo_register_read): Change return to enum register_status.
7006 Return the register's status.
7007 (vsx_pseudo_register_read): Ditto.
7008 (efpr_pseudo_register_read): Ditto.
7009 (rs6000_pseudo_register_read): Ditto.
7010 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7011 register_status. Return the register's status.
7012 * sh64-tdep.c (pseudo_register_read_portions): New function.
7013 (sh64_pseudo_register_read): Change return to enum
7014 register_status. Use pseudo_register_read_portions. Return the
7015 register's status.
7016 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7017 register_status. Return the register's status.
7018 * sh-tdep.c (pseudo_register_read_portions): New function.
7019 (sh_pseudo_register_read): Change return to enum register_status.
7020 Use pseudo_register_read_portions. Return the register's status.
7021 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7022 enum register_status. Return the register's status.
7023 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7024 * spu-tdep.c (spu_pseudo_register_read_spu)
7025 (spu_pseudo_register_read): Ditto.
7026 * xtensa-tdep.c (xtensa_register_read_masked)
7027 (xtensa_pseudo_register_read): Ditto.
7028 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7029
e10abd8f
PM
70302011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7031
7032 * python/py-value.c (valpy_getitem): Fix formatting of error function
7033 call.
7034
7ea6d463
PM
70352011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7036
7037 ARI fixes: Add missing internationalization markups throughout
7038 C source files.
7039 * darwin-nat-info.c: Ditto.
7040 * record.c: Ditto.
7041 * remote.c: Ditto.
7042 * mi/mi-main.c: Ditto.
7043
001083c6
PM
70442011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7045
7046 ARI fixes: Add missing internationalization markups throughout
7047 yacc files.
7048 * c-exp.y: Ditto.
7049 * cp-name-parser.y: Ditto.
7050 * f-exp.y: Ditto.
7051 * m2-exp.y: Ditto.
7052 * objc-exp.y: Ditto.
7053 * p-exp.y: Ditto.
7054
4f1cdeec
PM
70552011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7056
7057 ARI fixes: Messages should have no trailing new lines.
7058 * darwin-nat.c (mach_check_error): Remove trailing new line from
7059 warning function call message.
7060 * record.c (bfdcore_read): Idem for error call.
7061
28e698f1
PM
70622011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7063
7064 * common/signals.c (target_signal_from_host): Add _ markup to error
7065 function call message.
7066 (target_signal_to_host): Add _ markup and remove trailing new line
7067 from warning call message.
7068 (target_signal_from_command): Add _ markup to error function call
7069 message.
7070
99c3dc11
PM
70712011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7072
f33edef8 7073 PR python/12149
99c3dc11
PM
7074
7075 * python/python.c (gdbpy_write): Accept a stream argument and
7076 operate to the appropriate stream.
7077 (gdbpy_flush): Likewise.
7078 (_initialize_python): Add stream constants.
7079 (finish_python_initialization): Add GdbOutputErrorFile class.
7080
c20800be
KY
70812011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7082
7083 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7084
f4a1794a
KY
70852011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7086
7087 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7088 to store_signed_integer. Add debug message when relocating CALL
7089 instructions. Fix formatting of debug message.
7090 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7091
d4862372
JB
70922011-03-17 Joel Brobecker <brobecker@gnat.com>
7093
7094 * target.h (struct target_ops): Remove to_lookup_symbol field.
7095 (target_lookup_symbol): Delete macro.
7096 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7097 (update_current_target, setup_target_debug): Remove handling
7098 of to_lookup_symbol target_ops field.
7099 * ada-tasks.c (get_known_tasks_addr): Remove use of
7100 target_lookup_symbol.
7101 * coffread.c (coff_symtab_read): Likewise.
7102 * dbxread.c (read_dbx_symtab): Ditto.
7103
d645e32e
JB
71042011-03-17 Joel Brobecker <brobecker@gnat.com>
7105
7106 PR gdb/12116:
7107 * configure.ac: Add getthrds declaration check.
7108 * configure, config.in: Regenerate.
7109 * aix-thread.c (getthrds): Declare only if not already declared
7110 in procinfo.h. More declaration out of get_signaled_thread to
7111 global scope.
7112
29703da4
PM
71132011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7114
7115 * python/py-symtab.c: Populate symtab_object_methods,
7116 sal_object_methods.
7117 (stpy_is_valid): New function.
7118 (salpy_is_valid): Ditto.
7119 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7120 (sympy_is_valid): New function.
7121 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7122 (objfpy_is_valid): New function.
7123 * python/py-inferior.c: Populate inferior_object_methods.
7124 (infpy_is_valid): New function.
7125 * python/py-infthread.c: Populate thread_object_methods.
7126 (thpy_is_valid): New function.
7127 * python/py-block.c: Declare block_object_methods. Populate. Declare
7128 block_iterator_object_methods. Populate.
7129 (blpy_is_valid): New function.
7130 (blpy_iter_is_valid): Ditto.
7131
c00f8484
KS
71322011-03-16 Keith Seitz <keiths@redhat.com>
7133
7134 * linespec.c (find_methods): Canonicalize NAME before looking
7135 up the symbol.
7136 (name_end): New function.
7137 (keep_name_info): New function.
7138 (decode_line_1): Use keep_name_info.
7139 (decode_compound): Likewise.
7140 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7141 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7142
7143 PR c++/12273
7144 * linespec.c (locate_first_half): Keep overload information, too.
7145 (decode_compound): Use a string to represent break characters
7146 to escape the loop.
7147 If P points to a break character, do not increment it.
7148 For C++ and Java, keep overload information and relevant keywords.
7149 If we cannot find a symbol, search the minimal symbols.
7150
7151 PR c++/11734
7152 * linespec.c (decode_compound): Rename SAVED_ARG to
7153 THE_REAL_SAVED_ARG.
7154 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7155 single-quotes.
7156 Pass a valid block to lookup_symbol.
7157 (lookup_prefix_sym): Likewise.
7158 (find_method): Construct search name based on SYM_CLASS instead
7159 of SAVED_ARG.
7160 * psymtab.c (lookup_partial_symbol): Add language parameter.
7161 (lookup_symbol_aux_psymtabs): Likewise.
7162 Don't assume that the psymtab we found was the right one. Search
7163 for the desired symbol in the symtab to be certain.
7164 (psymtab_search_name): New function.
7165 (lookup_partial_symbol): Use psymtab_search_name.
7166 Add language parameter.
7167 (read_symtabs_for_function): Add language parameter and pass to
7168 lookup_partial_symbol.
7169 (find_symbol_file_from_partial): Likewise.
7170
c91513d8
PP
71712011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7172
7173 PR gdb/12528
7174 * dwarf2read.c (noop_record_line): New function.
7175 (dwarf_decode_lines): Ignore line tables for GCd functions.
7176
b37520b6
PM
71772011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7178
7179 Fix ARI warnings about new lines at the end of messages, which
7180 are unneeded as there is a new line added at the end of the message
7181 automatically.
7182 * darwin-nat.c (darwin_stop_inferior): Ditto.
7183 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7184 * dfp.c (decimal_to_number): Ditto.
7185 * exec.c (print_section_info): Ditto.
7186 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7187 * osdata.c (get_osdata): Ditto.
7188 * record.c (bfdcore_write): Ditto.
7189 * remote-mips.c (mips_readchar): Ditto.
7190 * remote.c (read_ptid): Ditto.
7191 * ser-mingw.c (ser_windows_raw): Ditto.
7192 * tracepoint.c (add_local_symbols): Ditto.
7193 * windows-nat.c (fake_create_process): Ditto.
7194
b08ee6a2
TT
71952011-03-16 Tom Tromey <tromey@redhat.com>
7196
7197 * tracepoint.c (stop_tracing): Don't declare.
7198 * event-top.c (after_char_processing_hook): Add `(void)'.
7199
9a6f1302
PM
72002011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7201
7202 * NEWS: Add Parameter sub-classing description.
7203
7ceb86b1
KT
72042011-03-16 Kai Tietz <ktietz@redhat.com>
7205
7206 * MAINTAINERS: Update my e-mail address.
7207
efeff6cf
AT
72082011-03-15 Andreas Tobler <andreast@fgznet.ch>
7209
7210 * MAINTAINERS: Add myself for write after approval privileges.
7211
681c238c
MS
72122011-03-15 Michael Snyder <msnyder@vmware.com>
7213
f3df5b08
MS
7214 * frame.c (find_frame_sal): Assert sym is not null.
7215
13f6513c
MS
7216 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7217
50412521
MS
7218 * objc-lang.c (selectors_info): Check strchr for null result.
7219
681c238c
MS
7220 * stabsread.c (define_symbol): Guard against bad stabstring input.
7221
6ced1581
PM
72222011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7223
7224 Remove trailing spaces and tabulations from pascal language
7225 support sources.
7226 p-exp.y: Ditto.
7227 p-lang.c: Ditto.
7228 p-lang.h: Ditto.
7229 p-valprint.c: Ditto.
7230
9373cf26
JK
72312011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7234 than LOW. Comment it.
7235 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7236 HIGHPC not strictly higher than LOWPC.
7237
9a1edae6
PM
72382011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7239
7240 Fix formatting of function declarations returning a pointer in
7241 previous commit.
7242 * varobj.c (varobj_add_child): Ditto.
7243 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7244 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7245
24e9cda0
UW
72462011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7247
7248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7249 for the "generic" vector ABI used with GCC 4.3 and later.
7250 (ppc64_sysv_abi_return_value): Likewise.
7251
72522011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7253
7254 * infcall.c (call_function_by_hand): Function return value is
7255 always a non_lval, even when using struct_return.
7256
c9174737
PA
72572011-03-15 Pedro Alves <pedro@codesourcery.com>
7258
7259 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7260 (map_display_numbers): New.
7261 (do_delete_display): New.
7262 (undisplay_command): Use map_display_numbers.
7263 (do_enable_disable_display): New.
7264 (enable_disable_display_command): New function.
7265 (enable_display): Delete.
7266 (enable_display_command): New.
7267 (disable_display_command): Reimplement.
7268 (_initialize_printcmd): Adjust "enable display" command to use
7269 `enable_display_command' as callback.
7270
350c6c65
PM
72712011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7272
7273 * NEWS: Add Python breakpoint 'stop' operation.
7274
824446ad
PM
72752011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7276
7277 * NEWS: Delete duplicate entry. Fix typo.
7278
2021ad3a
PM
72792011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7280
7281 Fix ARI warning about function names in first column.
7282 Put prototype declaration on same line as return type.
7283 * objc-exp.y: Ditto.
7284 * p-exp.y: Ditto.
7285 * python/py-stopevent.h: Ditto.
7286 For long function names, split parameters to
7287 allow function name on same line as return type.
7288 * solib-pa64.c: Ditto.
7289 * varobj.c: Ditto.
7290 * varobj.h: Ditto.
7291 For long function declaration, use single line.
7292 * hppa-tdep.h: Ditto.
7293 * inferior.h: Ditto.
7294
7371cf6d
PM
72952011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7296
7297 * python/python.h: Declare gdbpy_should_stop and
7298 gdbpy_breakpoint_has_py_cond.
7299 * python/python.c: Add python.h to includes. Remove python.h from
7300 HAVE_PYTHON definition
7301 (gdbpy_should_stop): New dummy function.
7302 (gdbpy_breakpoint_has_py_cond): New dummy function.
7303 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7304 sub-classing capabilities.
7305 (gdbpy_should_stop): New function.
7306 (gdbpy_breakpoint_has_py_cond): New function.
7307 (local_setattro): New function.
7308 * breakpoint.c (condition_command): Add check for Python 'stop'
7309 operation.
7310 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7311 operation function as part of stop/continue tests.
7312
37b50a69
TT
73132011-03-14 Tom Tromey <tromey@redhat.com>
7314
7315 PR gdb/12576:
7316 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7317 (needs_frame_dwarf_call): Likewise.
7318
eeae04df
PM
73192011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7320
7321 Fix ARI warning about functions without parameters that do not
7322 use (void).
7323 * breakpoint.c (all_tracepoints): Replace () by (void).
7324 * f-exp.y (match_string_literal): Ditto.
7325 (yylex): Ditto.
7326 * m2-exp.y (yylex): Ditto.
7327 * mep-tdep.c (current_me_module): Ditto.
7328 (current_options): Ditto.
7329 (current_cop_data_bus_width): Ditto.
7330 (current_cr_names): Ditto.
7331 (current_cr_is_float): Ditto.
7332 (current_ccr_names): Ditto.
7333 * objc-exp.y (yylex): Ditto.
7334 * p-exp.y (yylex): Ditto.
7335 * remote.c (send_interrupt_sequence): Ditto.
7336 * tracepoint.c (current_trace_status): Ditto.
7337 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7338 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7339
6dc3565d
MS
73402011-03-11 Michael Snyder <msnyder@vmware.com>
7341
1427fe5e
MS
7342 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7343 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7344 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7345 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7346 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7347
60bc018f
MS
7348 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7349 (delete_async_event_handler): Ditto.
7350
f3be5b64
MS
7351 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7352
4c2d5724
MS
7353 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7354
6dc3565d
MS
7355 * top.c (set_verbose): Assert showcmd was found.
7356
4e6ca6d5
MG
73572011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7358
7359 * xtensa-tdep.c (warning_once): Correct style issues.
7360
815a83e4
YQ
73612011-03-11 Yao Qi <yao@codesourcery.com>
7362
7363 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7364
f2eb0bc8
AS
73652011-03-11 Andreas Schwab <schwab@redhat.com>
7366
7367 * common/aclocal.m4: Remove.
7368
b801de47
MG
73692011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7370
7371 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7372 (xtensa_write_register, xtensa_read_register): Likewise.
7373 (xtensa_hextochar): Removed.
7374 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7375
dbab50de
MG
73762011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7377
7378 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7379 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7380 (xtensa_alloc_frame_cache): Add initialization for new fields.
7381 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7382 (warning_once): New function.
7383 (xtensa_insn_kind): New item c0opc_and.
7384 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7385 (call0_track_op): Change arguments. New local variable litbase.
7386 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7387 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7388 in the prologue.
dbab50de 7389 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7390 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7391 Add the variety of updates to handle extended prologues, which now can
7392 conduct dynamic stack adjustments.
7393 (call0_frame_cache): Likewise.
7394 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7395 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7396
b2c04452
MS
73972011-03-10 Michael Snyder <msnyder@vmware.com>
7398
f8f67713
MS
7399 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7400 (cmd_qtframe): Ditto.
7401 (cmd_qtbuffer): Ditto.
7402 (cmd_bigqtbuffer): Ditto.
7403
197f0a60
TT
74042011-03-10 Tom Tromey <tromey@redhat.com>
7405
7406 * tracepoint.c (trace_actions_command): Update.
7407 * thread.c (thread_apply_command): Update.
7408 * reverse.c (delete_bookmark_command): Update.
7409 (bookmarks_info): Update.
7410 * printcmd.c (undisplay_command): Update.
7411 * memattr.c (mem_enable_command): Update.
7412 (mem_disable_command): Update.
7413 (mem_delete_command): Update.
7414 * inferior.c (detach_inferior_command): Update.
7415 (kill_inferior_command): Update.
7416 (remove_inferior_command): Update.
7417 * cli/cli-utils.h (struct get_number_or_range_state): New.
7418 (init_number_or_range): Declare.
7419 (get_number_or_range): Update.
7420 * cli/cli-utils.c (init_number_or_range): New function.
7421 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7422 static variables.
7423 (number_is_in_list): Update.
7424 * breakpoint.h (get_tracepoint_by_number): Update.
7425 * breakpoint.c (map_breakpoint_numbers): Update for change to
7426 get_number_or_range.
7427 (find_location_by_number): Use get_number, not
7428 get_number_or_range.
7429 (trace_pass_set_count): New function.
7430 (trace_pass_command): Update for change to get_number_or_range.
7431 Rework loop logic.
7432 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7433 'state' parameter.
7434
ecec24e6
PM
74352011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7436
7437 * python/py-param.c (add_setshow_generic): Add set/show callback
7438 parameters. Register Python object context.
7439 (get_show_value): New function.
7440 (get_set_value): New function.
7441 (call_doc_function): New function.
7442 (get_doc_string): Move behind get_show_value/get_set_value.
7443
6d6c6b1f
JK
74442011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7445
7446 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7447
68d6df83
MG
74482011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7449
dbab50de 7450 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7451 (xtensa_write_register): Likewise.
7452 (xtensa_hextochar): Add comment and update to match coding conventions.
7453 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7454 (execute_l32e, execute_s32e, execute_code): Update comments.
7455 (xtensa_exception_handler_t): Update to match coding conventions.
7456 (xtensa_insn_kind): Likewise.
7457
85c9d6a6
MS
74582011-03-09 Michael Snyder <msnyder@vmware.com>
7459
7460 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7461
91495617
PA
74622011-03-09 Pedro Alves <pedro@codesourcery.com>
7463
7464 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7465
eb8c0621
TT
74662011-03-09 Tom Tromey <tromey@redhat.com>
7467
7468 * thread.c (restore_selected_frame): Handle frame_level == -1.
7469 (make_cleanup_restore_current_thread): Use
7470 get_selected_frame_if_set.
7471 * frame.h (get_selected_frame_if_set): Declare.
7472 * frame.c (get_selected_frame_if_set): New function.
7473
9f37bbcc
PA
74742011-03-09 Pedro Alves <pedro@codesourcery.com>
7475
7476 * cli/cli-cmds.c (shell_escape): Use lbasename.
7477 * coffread.c (coff_start_symtab): Constify parameter.
7478 (complete_symtab): Constify `name' parameter.
7479 (coff_symtab_read): Constify `filestring' local.
7480 (coff_getfilename): Constify return and `result' local.
7481 Use lbasename.
7482 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7483 * linux-fork.c (info_checkpoints_command): Use lbasename.
7484 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7485 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7486 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7487 * procfs.c (procfs_make_note_section): Use lbasename.
7488 * tui/tui-io.c (printable_part): Constity return and parameter.
7489 Use lbasename.
7490 (print_filename): Constify parameters, and local `s'.
7491 (tui_rl_display_match_list): Constify local `temp'.
7492
f8de3c55
JK
74932011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7494
7495 Revert:
7496 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7497 Fix DWARF-3+ DW_AT_accessibility default assumption.
7498 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7499 cu->header.version >= 3.
7500
d9837b00
YQ
75012011-03-09 Yao Qi <yao@codesourcery.com>
7502
7503 * common/Makefile.in: Remove.
7504 * common/configure: Remove.
7505 * common/configure.ac: Remove.
7506
e637a4f5
YQ
75072011-03-09 Yao Qi <yao@codesourcery.com>
7508
7509 Revert:
7510 2011-02-11 Yao Qi <yao@codesourcery.com>
7511
7512 * common/Makefile.in: Add copyright header.
7513
7514 2011-02-11 Yao Qi <yao@codesourcery.com>
7515
7516 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7517 libcommon.a.
7518 * configure.ac: Add common to sub dir.
7519 * configure: Regenerate.
7520
f976a05d
MG
75212011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7522
7523 * xtensa-tdep.c (call0_ret): New function.
7524 (xtensa_skip_prologue): Speed up analysis.
7525
57041825
MG
75262011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7527
7528 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7529 while executing MI command -data-list-changed-registers.
7530
08b9c608
MG
75312011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7532
7533 * xtensa-tdep.c (xtensa_read_register): New function.
7534 (xtensa_write_register): New function.
7535 (xtensa_find_register_by_name): New function.
7536 (xtensa_windowed_frame_cache): Update comments in type description.
7537 (xtensa_frame_cache): Likewise.
7538 (xtensa_window_interrupt_insn): New function.
7539 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7540 (xtensa_insn_kind): Add new instructions.
7541 (rwx_special_register): New function.
7542 (call0_classify_opcode): Add new instructions to the analysis.
7543 (a0_saved, a7_saved, a11_saved): New variables.
7544 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7545 (execute_l32e): New function.
7546 (execute_s32e): New function.
7547 (xtensa_exception_handler_t): New type.
7548 (execute_code): New function.
7549 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7550 analysis for Xtensa Window Exception handlers.
7551
4d1acb11
MG
75522011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7553
98689b25
MG
7554 * xtensa-tdep.c (TX_PS): New.
7555 (windowing_enabled): Update to count for Call0 ABI.
7556 (xtensa_hextochar): New.
7557 (xtensa_init_reggroups): Make algorithm generic.
7558 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7559
75602011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7561
7562 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7563
d3f323f3
MS
75642011-03-08 Michael Snyder <msnyder@vmware.com>
7565
3dcabaa8
MS
7566 * i386-tdep.c (i386_follow_jump): Check return value of
7567 target_read_memory.
7568 (i386_analyze_struct_return): Ditto.
7569 (i386_skip_probe): Ditto.
7570 (i386_match_insn): Ditto.
7571 (i386_skip_noop): Ditto.
7572 (i386_analyze_frame_setup): Ditto.
7573 (i386_analyze_register_saves): Ditto.
7574 (i386_skip_prologue): Ditto.
7575 (i386_skip_main_prologue): Ditto.
7576
13b3fd9b
MS
7577 * target.c (read_whatever_is_readable): Fix memory leak.
7578
d3f323f3
MS
7579 * i386-tdep.c (i386_process_record): Document fall through.
7580
421d5c74
JK
75812011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 Fix DWARF-3+ DW_AT_accessibility default assumption.
7584 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7585 cu->header.version >= 3.
7586
63154eca
PA
75872011-03-08 Pedro Alves <pedro@codesourcery.com>
7588
7589 * remote.c (remote_check_symbols): Skip if the target has no
7590 execution.
7591
f1a507a1
JB
75922011-03-08 Joel Brobecker <brobecker@adacore.com>
7593
7594 * target.c (read_whatever_is_readable): Reformat comment,
7595 with a minor typo fix. Minor reformatting of the code.
7596
36073a92
YQ
75972011-03-08 Yao Qi <yao@codesourcery.com>
7598
7599 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7600 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7601 Use cached result instead of calling displaced_in_arm_mode again.
7602 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7603 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7604 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7605 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7606 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7607 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7608 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7609 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7610 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7611 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7612 (arm_catch_kernel_helper_return): Likewise.
7613 * gdb/arm-tdep.h : Update function declarations.
7614
d3f323f3 76152011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 7616
e0e40094
MS
7617 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7618
0b2381f5
MS
7619 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7620
0350914a
MS
7621 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7622
69feea6f
MS
7623 * elfread.c (elf_symtab_read): Stop memory leak.
7624
e6040cbd
MS
7625 * main.c (captured_main): Fix memory leak.
7626
052874e8
AS
76272011-03-07 Andreas Schwab <schwab@linux-m68k.org>
7628
7629 * ada-lang.c (compare_names): Call is_name_suffix with string1
7630 instead of string2.
7631
b11896a5
TT
76322011-03-07 Tom Tromey <tromey@redhat.com>
7633
7634 * xcoffread.c (xcoff_sym_fns): Update.
7635 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7636 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7637 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7638 (symbol_file_add_with_addrs_or_offsets): Likewise.
7639 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7640 * somread.c (som_sym_fns): Update.
7641 * psymtab.h (require_partial_symbols): Declare.
7642 * psymtab.c (require_partial_symbols): New function.
7643 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7644 (ALL_OBJFILE_PSYMTABS): Undef.
7645 (ALL_PSYMTABS): Move from psympriv.h.
7646 (lookup_partial_symtab, find_pc_sect_psymtab)
7647 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7648 (find_last_source_symtab_from_partial)
7649 (forget_cached_source_info_partial)
7650 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7651 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7652 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7653 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7654 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7655 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7656 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7657 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7658 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7659 psymtabs.
7660 * mipsread.c (ecoff_sym_fns): Update.
7661 * machoread.c (macho_sym_fns): Update.
7662 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7663 (read_psyms): New function.
7664 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7665 (elf_sym_fns_lazy_psyms): New global.
7666 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7667 dwarf2_build_psymtabs.
7668 * dbxread.c (aout_sym_fns): Update.
7669 * coffread.c (coff_sym_fns): Update.
7670
fda326dd
TT
76712011-03-07 Tom Tromey <tromey@redhat.com>
7672
7673 * infrun.c (print_exited_reason): Include inferior id and pid in
7674 message.
7675
aeaec162
TT
76762011-03-07 Tom Tromey <tromey@redhat.com>
7677
7678 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7679 parameter.
7680 (target_has_execution_1): Update.
7681 (target_has_execution_current): Declare.
7682 (target_has_execution): Call target_has_execution_current.
7683 (default_child_has_execution): Update.
7684 * target.c (default_child_has_execution): Add 'the_ptid'
7685 parameter.
7686 (target_has_execution_1): Likewise.
7687 (target_has_execution_current): New function.
7688 (add_target): Update.
7689 (init_dummy_target): Update.
7690 * remote-m32r-sdi.c (m32r_has_execution): New function.
7691 (init_m32r_ops): Use it.
7692 * record.c (record_core_has_execution): Now static. Add
7693 'the_ptid' parameter.
7694 * inferior.c (have_live_inferiors): Don't save current thread.
7695 Use target_has_execution_1.
7696
08e14083
YQ
76972011-03-07 Yao Qi <yao@codesourcery.com>
7698
7699 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7700
c05d19c5
JB
77012011-03-07 Joel Brobecker <brobecker@adacore.com>
7702
7703 * elfread.c (elf_symtab_read): Minor reformatting.
7704
3e6ef9e4
JB
77052011-03-07 Joel Brobecker <brobecker@adacore.com>
7706
7707 * objc-lang.c (selectors_info): Minor reformatting.
7708
dbb8534f
JB
77092011-03-07 Joel Brobecker <brobecker@adacore.com>
7710
7711 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7712
dd70cc93
JB
77132011-03-07 Joel Brobecker <brobecker@adacore.com>
7714 Michael Snyder <msnyder@vmware.com>
7715
7716 * ada-valprint.c (ada_val_print_array): Move the declaration of
7717 "byte_order" and "elttype" inside the block where these variables
7718 are actually used. Remove some special handling for the case
7719 where "elttype" and "eltlen" are null. Replace by a comment
7720 and a couple of assertion checks.
7721
b27cf2b3
MS
77222011-03-05 Michael Snyder <msnyder@vmware.com>
7723
7724 * source.c (add_path): Replace semicolon at end of block.
7725 * dwarf2expr.c (execute_stack_op): Ditto.
7726
5387a0c6
MF
77272011-03-05 Mike Frysinger <vapier@gentoo.org>
7728
7729 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7730 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7731 (bfin-*-*): Likewise.
7732
e3aa49af
MS
77332011-03-05 Michael Snyder <msnyder@vmware.com>
7734
82ae4854
MS
7735 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7736 * mdebugread.c (parse_symbol): Ditto.
7737 * parse.c (parse_exp_in_context): Ditto.
7738 * source.c (add_path): Ditto.
7739 * utils.c (gnu_debuglink_crc32): Ditto.
7740 * varobj.c (variable_language): Ditto.
7741
e3aa49af
MS
7742 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7743
154f592e
MS
77442011-03-04 Michael Snyder <msnyder@vmware.com>
7745
da3ecdc6
MS
7746 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7747
9cc89665
MS
7748 * symfile.c (simple_overlay_update): Check for null return value
7749 from lookup_minimal_symbol.
7750
154f592e
MS
7751 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7752
63ffa6ee
TJB
77532011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7754
7755 * eval.c (parse_and_eval_address_1): Remove function.
7756 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7757 instead of parse_and_eval_address_1.
7758 * value.h (parse_and_eval_address_1): Remove prototype.
7759
a17d146e
MS
77602011-03-04 Michael Snyder <msnyder@vmware.com>
7761
7762 * remote.c (putpkt_binary): Document that case stmt falls through.
7763
1a6a67de
TJB
77642011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7765
7766 * breakpointc (print_it_typical): Move NULL check from here...
7767 (print_bp_stop_message): ... to here.
7768
488919c4
MS
77692011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
7770
7771 * breakpoint.c (enable_command): Use break instead of continue,
7772 and fill in a missing break.
7773 (disable_command): Ditto.
7774
1e182ce8
UW
77752011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7776
7777 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7778 (terminal_save_ours): Remove misleading comment.
7779 (inflow_inferior_data_cleanup): Free ttystate.
7780 (inflow_inferior_exit): Likewise.
7781 (copy_terminal_info): Copy ttystate.
7782
7783 * serial.c (serial_copy_tty_state): New function.
7784 * serial.h (serial_copy_tty_state): Add prototype.
7785 (struct serial_ops): Add copy_tty_state callback.
7786 * ser-base.c (ser_base_copy_tty_state): New function.
7787 * ser-base.h (ser_base_copy_tty_state): Add prototype.
7788 * ser-go32.c (dos_copy_tty_state): New function.
7789 (dos_ops): Install copy_tty_state callback.
7790 * ser-mingw.c (_initialize_ser_windows): Likewise.
7791 * ser-pipe.c (_initialize_ser_pipe): Likewise.
7792 * ser-unix.c (hardwire_copy_tty_state): New function.
7793 (_initialize_ser_hardwire): Install it.
7794
b2c5f112
MS
77952011-03-04 Michael Snyder <msnyder@vmware.com>
7796
2abae994
MS
7797 * breakpoint.c (create_breakpoint): Add missing break statement.
7798
7f5936f9
MS
7799 Reverting this patch:
7800 * infcall.c (call_function_by_hand): Add break statements for lint.
7801
b2c5f112
MS
7802 Reverting this patch:
7803 * cli/cli-script.c (script_from_file): Add break for lint.
7804
42b1321c
MS
78052011-03-04 Michael Snyder <msnyder@vmware.com>
7806
7807 * solib.c (reload_shared_libraries_1): Close memory leak.
7808
3e2a0cee
TT
78092011-03-03 Tom Tromey <tromey@redhat.com>
7810
7811 PR gdb/12538:
7812 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7813 DW_STRING is NULL.
7814
58397cb7
MS
78152011-03-03 Michael Snyder <msnyder@vmware.com>
7816
2e3fd767
MS
7817 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7818 fields of struct 'st' to zero.
7819
58397cb7
MS
7820 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7821 sal.pspace before calling set_current_source_symtab_and_line.
7822
ced54c8f
YQ
78232011-03-03 Yao Qi <yao@codesourcery.com>
7824
7825 * Makefile.in (configure-common): Remove. Let Makefile
7826 in dir common to rebuild itself.
7827 (common/Makefile): Likewise.
7828
3351ea09
JB
78292011-03-03 Joel Brobecker <brobecker@adacore.com>
7830
7831 * utils.c (parse_escape): Add i18n markup in error message.
7832
bf9f652a
YQ
78332011-03-03 Yao Qi <yao@codesourcery.com>
7834
7835 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7836 ARM_PC_REGNUM.
7837 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7838 (displaced_write_reg, displaced_read_reg): Likewise.
7839 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7840 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7841 (cleanup_branch): Replace magic number 14 and 15 with
7842 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7843
d42de051
MS
78442011-03-02 Michael Snyder <msnyder@vmware.com>
7845
240f9570
MS
7846 * maint.c (maintenance_do_deprecate): No need to check for NULL.
7847
10dd8b54
MS
7848 * cli/cli-script.c (script_from_file): Add break for lint.
7849
b98bd911
MS
7850 * mdebugread.c (parse_partial_symbols): Fix indent.
7851
3494b66d
MS
7852 * target-descriptions.c (tdesc_gdb_type): No need to call
7853 xstrdup, callee saves a copy.
7854
daac021a
MS
7855 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7856
c38d16a7
MS
7857 * infcall.c (call_function_by_hand): Add break statements for lint.
7858
905b671b
MS
7859 * utils.c (parse_escape): Escape the escape char.
7860
f2eb0bc8 7861 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
7862 PyList_Append fails.
7863 (gdbpy_inferiors): Error out if build_inferior_list fails.
7864
8c6a60d1
MS
7865 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7866 a function call.
7867
d42de051
MS
7868 * record.c (record_restore): Move printf to before error return.
7869
4db71c0b
YQ
78702011-03-02 Yao Qi <yao@codesourcery.com>
7871
7872 * arm-tdep.h (struct displaced_step_closure): Add two new fields
7873 is_thumb and insn_size.
7874 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7875 on both ARM and Thumb mode.
7876 (arm_process_displaced_insn): Set is_thumb and insn_size.
7877 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7878 (arm_displaced_step_fixup): Likewise.
7879
a9dc8dcc
MS
78802011-03-01 Michael Snyder <msnyder@vmware.com>
7881
53624a93
MS
7882 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7883
77766669
MS
7884 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7885
62d5b8da
MS
7886 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7887
5e9e105f
MS
7888 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7889
dc19db01
MS
7890 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7891 with xmalloc.
7892
5ce64950
MS
7893 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7894 which shadows function parameter.
7895
a0aa2878
MS
7896 * tracepoint.c (create_tsv_from_upload): Superfluous call
7897 to xstrdup. Callee already calls xstrdup.
7898
e325fb69
MS
7899 * linespec.c (decode_line_1): Remove unnecessary null check.
7900
21cbba77
MS
7901 * tracepoint.c (scope_info): Fix mem leak, remove underused
7902 variable.
7903
63360adc
MS
7904 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7905 superfluous null check.
7906
18ea20ac 7907 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 7908 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 7909
d014929c
MS
7910 * event-top.c (display_gdb_prompt): Remove superfluous null check.
7911
6e9130cf
MS
7912 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7913 be null.
7914
5f01dbc0
MS
7915 * linespec.c (decode_line_1): Check for null before dereference.
7916
d684ab85
MS
7917 * reverse.c (record_restore): Move null-check to before pointer
7918 dereference.
7919
bfffb7e3
MS
7920 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7921
a9dc8dcc
MS
7922 * objc-lang.c (selectors_info): Add explanitory comment.
7923 (classes_info): Ditto.
7924
478fd957
UW
79252011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7926
7927 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7928 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7929 versions of the trampoline. Handle Thumb vs. ARM addresses.
7930 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7931 (arm_linux_init_abi): Install it.
7932 * arm-tdep.c (arm_psr_thumb_bit): Make global.
7933 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7934
0480cefa
MS
79352011-02-28 Michael Snyder <msnyder@vmware.com>
7936
ac50ab3b
MS
7937 * ui-out.c (ui_out_field_core_addr): Make local char buffer
7938 a little bigger, to avoid possibility of an overflow.
7939
f63fbe86
MS
7940 * breakpoint.c (breakpoint_adjustment_warning): Make local char
7941 buffers a little bigger, to avoid possibility of an overflow.
7942
9e91a352
MS
7943 * coffread.c (coff_getfilename): Add check to avoid overflow.
7944
f2eb0bc8 7945 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
7946 avoid overflow.
7947 (classes_info): Error out on too long REGEXP.
7948
098ab512
MS
7949 * infrun.c (handle_inferior_event): Remove unused function call.
7950
bcbd1de9
MS
7951 * fork-child.c (fork_inferior): Remove ifdef'd code and
7952 unused variable.
7953
2e456570
MS
7954 * linux-thread-db.c (attach_thread): Discard unused value.
7955
14571dad
MS
7956 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7957
a9cbf802
MS
7958 * remote.c (remote_get_noisy_reply): Discard unused value.
7959 (remote_vcont_resume): Ditto.
7960 (remote_stop_ns): Ditto.
7961
5715d26e
MS
7962 * linespec.c (decode_objc): Delete unused variable.
7963
4a9bca80
MS
7964 * tui/tui-regs.c (tui_register_format): Delete unused variable.
7965
f47fb265
MS
7966 * dwarf2read.c (add_partial_symbol): Discard unused values.
7967 (read_base_type): Delete unused variable.
7968
e81cff30
MS
7969 * dbxread.c (read_dbx_symtab): Discard unused value.
7970
262acaeb
MS
7971 * eval.c (evaluate_subexp_standard): Delete unused variable,
7972 and discard unused values.
7973
df983543
MS
7974 * infcmd.c (_initialize_infcmd): Discard unused values.
7975
89acf84d
MS
7976 * stabsread.c (rs6000_builtin_type): Missing break statement.
7977
ab8b8aca
MS
7978 * dbxread.c (process_one_symbol): Discard unused value.
7979
6b4511ab
MS
7980 * coffread.c (coff_end_symtab): Delete unused variable.
7981
e8e80198
MS
7982 * dwarf2read.c (dw2_get_file_names): Discard unused value.
7983 (dwarf2_add_typedef): Delete unused variable.
7984 (read_namespace): Ditto.
7985 (dwarf_decode_macros): Ditto.
7986
976aa66e
MS
7987 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7988
5b92b49f
MS
7989 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7990
91e8df85
MS
7991 * p-valprint.c (pascal_val_print): Discard unused value.
7992
899500d6
MS
7993 * utils.c (nquery): Call va_end before return;
7994 (yquery): Ditto.
7995 (query): Ditto.
7996
0480cefa
MS
7997 * proc-service.c (ps_plog): Call va_end before return.
7998
fb6a3ed3
TT
79992011-02-28 Tom Tromey <tromey@redhat.com>
8000
8001 * python/python.c (gdbpy_value_cst): New global.
8002 (_initialize_python): Initialize it.
8003 * python/python-internal.h (gdbpy_value_cst): Declare.
8004 * python/py-value.c (convert_value_from_python): Use
8005 gdbpy_value_cst.
8006
c05202a1
MS
80072011-02-28 Michael Snyder <msnyder@vmware.com>
8008
e463f587
MS
8009 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8010
c38eea1a
MS
8011 * breakpoint.c (catch_syscall_completer): Free malloced list.
8012
3ef09ab5
MS
8013 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8014
8f9a01ee
MS
8015 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8016 (lval_func_check_synthetic_pointer): Ditto.
8017 (lval_func_free_closure): Fix use-after-free.
c05202a1 8018
477d0d57
TT
80192011-02-28 Tom Tromey <tromey@redhat.com>
8020
8021 * psymtab.c (expand_partial_symbol_tables): Use
8022 ALL_OBJFILE_PSYMTABS.
8023
20937029
JK
80242011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8025
8026 * objc-lang.c (selectors_info): Error on too long REGEXP.
8027
907b7f4f
MS
80282011-02-28 Michael Snyder <msnyder@vmware.com>
8029
92e96192
MS
8030 * python/py-param.c (set_parameter_value): Add missing
8031 break statement.
8032
907b7f4f
MS
8033 * linux-record.c (record_linux_system_call): Add missing
8034 break statement.
8035
12c5a436
UW
80362011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8037
8038 * breakpoint.c (print_one_breakpoint_location): Remove unused
8039 argument PRINT_ADDRESS_BITS. Update callers.
8040 (print_one_breakpoint): Likewise.
8041
170b53b2
UW
80422011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8043
8044 * breakpoint.c (wrap_indent_at_field): New function.
8045 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8046 Allocate ui_stream locally instead of using STB argument.
8047 (print_one_breakpoint_location): Update call.
8048 * ui-out.c (ui_out_query_field): New function.
8049 * ui-out.h (ui_out_query_field): Add prototype.
8050
8ab1f94d
JB
80512011-02-28 Joel Brobecker <brobecker@adacore.com>
8052
8053 From Michael Snyder <msnyder@vmware.com>
8054 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8055
7d488639
MS
80562011-02-27 Michael Snyder <msnyder@vmware.com>
8057
ae179fba
MS
8058 * objc-lang.c (selectors_info): Prevent string overrun.
8059
086dbf66
MS
8060 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8061 error in strncpy.
8062
f2eb0bc8 8063 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8064 outer scope.
8065
7d488639
MS
8066 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8067 param with a local variable of the same name.
8068
3bd0f5ef
MS
80692011-02-27 Michael Snyder <msnyder@vmware.com>
8070
8071 * value.c (value_from_history_ref): New function.
8072 * value.h (value_from_history_ref): Export.
8073 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8074 to parse value history references.
8075 * cli/cli-utils.h (get_number_trailer): Update comment.
8076
80772011-02-27 Michael Snyder <msnyder@vmware.com>
8078
8079 * inferior.c (detach_inferior_command): Use get_number_or_range.
8080 (kill_inferior_command): Ditto.
8081 (remove_inferior_command): Ditto.
8082 (initialize_inferiors): Make command names plural.
8083 Update help strings.
8084
766062f6
MS
80852011-02-27 Michael Snyder <msnyder@vmware.com>
8086
8087 * darwin-nat-info.c: Fix comment typo.
8088 * dwarf2expr.h: Ditto.
8089 * fbsd-nat.c: Ditto.
8090 * fbsd-nat.h: Ditto.
8091 * frame-unwind.h: Ditto.
8092 * frame.h: Ditto.
8093 * hppa-hpux-tdep.c: Ditto.
8094 * i386-linux-nat.c: Ditto.
8095 * linux-nat.c: Ditto.
8096 * nbsd-nat.c: Ditto.
8097 * nbsd-nat.h: Ditto.
8098 * ppc-linux-tdep.c: Ditto.
8099 * serial.c: Ditto.
8100 * ui-file.h: Ditto.
8101 * tui/tui-winsource.c: Ditto.
8102
f2c4ead5
MS
81032011-02-26 Michael Snyder <msnyder@vmware.com>
8104
86b887df
MS
8105 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8106
66fd3b1e
MS
8107 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8108
8c814cdd
MS
8109 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8110 with a local variable of the same name.
8111
6d5e094a 8112 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8113 param with a local variable of the same name.
6d5e094a 8114 (i387_supply_xsave): Ditto.
e5b3d7d6 8115
5eee517d
MS
8116 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8117 that it does not shadow a function parameter.
8118
8fbf6b93
MS
8119 * i386-nat.c (i386_length_and_rw_bits): Document that case
8120 statement is meant to fall through.
8121
cb969d61
MS
8122 * expprint.c (dump_subexp_body_standard): Document that case
8123 statement is meant to fall through.
8124
f2c4ead5
MS
8125 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8126 dead if statement. Condition can't be false.
8127
b021a221
MS
81282011-02-25 Michael Snyder <msnyder@vmware.com>
8129
8130 * arm-tdep.c: Fix typos in comments.
8131 * bsd-uthread.c: Ditto.
8132 * completer.c: Ditto.
8133 * corelow.c: Ditto.
8134 * cp-namespace.c: Ditto.
8135 * cp-support.c: Ditto.
8136 * cris-tdep.c: Ditto.
8137 * dbxread.c: Ditto.
8138 * dwarf2read.c: Ditto.
8139 * frame.h: Ditto.
8140 * gdbtypes.h: Ditto.
8141 * inferior.h: Ditto.
8142 * mdebugread.c: Ditto.
8143 * mips-tdep.c: Ditto.
8144 * ppc-linux-nat.c: Ditto.
8145 * ppc-linux-tdep.c: Ditto.
8146 * printcmd.c: Ditto.
8147 * sol-thread.c: Ditto.
8148 * solib-frv.c: Ditto.
8149 * solist.h: Ditto.
8150 * sparc64-tdep.c: Ditto.
8151 * spu-tdep.c: Ditto.
8152 * stabsread.c: Ditto.
8153 * symfile.c: Ditto.
8154 * valops.c: Ditto.
8155 * varobj.c: Ditto.
8156 * vax-nat.c: Ditto.
8157 * python/py-block.c: Ditto.
8158 * python/py-symbol.c: Ditto.
8159 * python/py-symtab.c: Ditto.
8160 * python/py-value.c: Ditto.
8161 * tui/tui-win.c: Ditto.
8162
c82c0b55
MS
81632011-02-25 Michael Snyder <msnyder@vmware.com>
8164
8165 * inferior.c (print_inferior): Accept a string instead of an int
8166 for requested_inferiors, and use get_number_or_range to parse it.
8167 (info_inferiors_command): Pass args string to print_inferior.
8168 (initialize_inferiors): Change help string for info inferiors.
8169 * inferior.h (print_inferior): Export prototype change.
8170
ee00cd23
TT
81712011-02-25 Tom Tromey <tromey@redhat.com>
8172
8173 * common/ax.def (invalid2): Set to 0x31.
8174
0502ed8c
JK
81752011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8176
8177 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8178 L and plongest.
8179 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8180 use L and plongest.
8181 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8182
2c9de912
MS
81832011-02-24 Michael Snyder <msnyder@vmware.com>
8184
8185 * Makefile.in (clean): Make clean should remove generated files
8186 observer.h and observer.inc.
8187
a04b0428
JB
81882011-02-24 Joel Brobecker <brobecker@adacore.com>
8189
8190 Revert the following patch (not approved yet):
8191 2011-02-21 Hui Zhu <teawater@gmail.com>
8192 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8193 * ax-gdb.c (gen_printf_expr_callback): New function.
8194 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8195 * ax-general.c (ax_memcpy): New function.
8196 (ax_print): Handle "printf".
8197 (ax_reqs): Ditto.
8198 * ax.h (ax_memcpy): Forward declare.
8199 * common/ax.def (invalid2): Removed.
8200 (printf): New entry.
8201 * printcmd.c (printcmd.h): New include.
8202 (string_printf): New function.
8203 (ui_printf): Removed.
8204 (printf_command): Remove static. Call string_printf.
8205 (eval_command): Call string_printf.
8206 * printcmd.h: New file.
8207 * tracepoint.c (validate_actionline,
8208 encode_actions_1): handle printf_command.
8209
2b52013f
TT
82102011-02-23 Tom Tromey <tromey@redhat.com>
8211
8212 * ax-general.c (ax_pick): Add missing newline.
8213
e5a67952
MS
82142011-02-23 Michael Snyder <msnyder@vmware.com>
8215
8216 * breakpoint.c (breakpoint_1): Change first argument from an int
8217 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8218 breakpoints rather than just one. Use new function
e5a67952
MS
8219 'number_is_in_list' to implement.
8220 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8221 (watchpoints_info): Ditto.
8222 (tracepoints_info): Ditto.
8223 (maintenance_info_breakpoints): Ditto.
8224 (_initialize_breakpoint): Update help strings to reflect the fact
8225 that these functions can now take more than one argument.
8226 * cli/cli-utils.c (number_is_in_list): New function.
8227 * cli/cli-utils.h (number_is_in_list): Export.
8228
82292011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8230
8231 * memattr.c (mem_enable_command): Use get_number_or_range.
8232 (mem_disable_command): Ditto.
8233 (mem_delete_command): Ditto.
8234 (_initialize_mem): Tweak usage message to reflect multiple
8235 arguments.
8236
6e6fbe60
DE
82372011-02-22 Doug Evans <dje@google.com>
8238
8239 Add gdb.lookup_global_symbol python function.
8240 * NEWS: Add entry.
8241 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8242 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8243 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8244
79b97fa8
TT
82452011-02-22 Tom Tromey <tromey@redhat.com>
8246
8247 * language.c (language_class_name_from_physname): Rename
8248 'curr_language' argument to 'lang'; use in body.
8249
298f437a
MS
82502011-02-22 Michael Snyder <msnyder@vmware.com>
8251
8252 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8253
b7ea3126
PA
82542011-02-22 Pedro Alves <pedro@codesourcery.com>
8255
8256 * frame-unwind.h: Fix comment to mention the this frame, not the
8257 next.
8258
58ee6d60
TT
82592011-02-22 Tom Tromey <tromey@redhat.com>
8260
8261 * symfile.c (auto_solib_limit): Remove.
8262 * symfile.h (auto_solib_limit): Remove.
8263
36238dbc
JB
82642011-02-22 Joel Brobecker <brobecker@adacore.com>
8265
8266 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8267
aea5b279
MS
82682011-02-21 Michael Snyder <msnyder@vmware.com>
8269
8270 * gdbthread.h (print_thread_info): Change prototype.
8271 * thread.c (print_thread_info): Accept char* instead of int for
8272 requested_threads argument. Use new function number_is_in_list
8273 to determine which threads to list.
8274 (info_threads_command): Pass char* to print_thread_info.
8275 * cli/cli-utils.c (number_is_in_list): New function.
8276 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8277 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8278 print_thread_info.
8279 (print_one_inferior): Ditto.
8280 (mi_cmd_list_thread_groups): Ditto.
8281
8caa75ee
JK
82822011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 * common/Makefile.in (CFLAGS): New.
8285 (COMPILE): Add $(CFLAGS).
8286
ea666128
TT
82872011-02-21 Tom Tromey <tromey@redhat.com>
8288
8289 * breakpoint.c (catch_syscall_command_1): Fix typo.
8290
e9cafbcc
TT
82912011-02-21 Tom Tromey <tromey@redhat.com>
8292
8293 * reverse.c: Include cli-utils.h.
8294 * printcmd.c: Include cli-utils.h.
8295 (string_printf): Use skip_spaces.
8296 * cli/cli-utils.h: New file.
8297 * cli/cli-utils.c: New file.
8298 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8299 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8300 * breakpoint.h (get_number, get_number_or_range): Move to
8301 cli-utils.h.
8302 * breakpoint.c: Include cli-utils.h.
8303 (get_number_trailer, get_number, get_number_or_range)
8304 (ep_skip_leading_whitespace): Move to cli-utils.c.
8305 (create_breakpoint_sal, find_condition_and_thread)
8306 (decode_static_tracepoint_spec, watch_command_1)
8307 (watch_maybe_just_location, ep_parse_optional_if_clause)
8308 (catch_fork_command_1, catch_exec_command_1)
8309 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8310 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8311 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8312 (HFILES_NO_SRCDIR): Add cli-utils.h.
8313 (cli-utils.o): New target.
8314
f67fd822
PM
83152011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8316
8317 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8318 before calling discard_all_inferiors.
8319
c9def01d
UW
83202011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8321
8322 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8323 (struct builtin_opencl_type): Remove.
8324 (builtin_opencl_type): Change return type to "struct type **".
8325 (lookup_opencl_vector_type): Update caller.
8326 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8327 (build_opencl_types): Install plain array of "struct type *"
8328 instead of "struct builtin_opencl_type".
8329
e3039479
UW
83302011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8331 Ulrich Weigand <uweigand@de.ibm.com>
8332
8333 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8334 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8335 (struct arm_linux_hwbp_cap): New type.
8336 (arm_linux_get_hwbp_cap): New function.
8337 (arm_linux_get_hw_breakpoint_count): Likewise.
8338 (arm_linux_get_hw_watchpoint_count): Likewise.
8339 (arm_linux_can_use_hw_breakpoint): Likewise.
8340 (arm_hwbp_type): New type.
8341 (arm_hwbp_control_t): Likewise.
8342 (struct arm_linux_hw_breakpoint): Likewise.
8343 (struct arm_linux_thread_points): Likewise.
8344 (arm_threads): New global variable.
8345 (arm_linux_find_breakpoints_by_tid): New function.
8346 (arm_hwbp_control_initialize): Likewise.
8347 (arm_hwbp_control_is_enabled): Likewise.
8348 (arm_hwbp_control_disable): Likewise.
8349 (arm_linux_hw_breakpoint_initialize): Likewise.
8350 (arm_linux_get_hwbp_type): Likewise.
8351 (arm_linux_hw_watchpoint_initialize): Likewise.
8352 (arm_linux_hw_breakpoint_equal): Likewise.
8353 (arm_linux_insert_hw_breakpoint1): Likewise.
8354 (arm_linux_remove_hw_breakpoint1): Likewise.
8355 (arm_linux_insert_hw_breakpoint): Likewise.
8356 (arm_linux_remove_hw_breakpoint): Likewise.
8357 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8358 (arm_linux_insert_watchpoint): Likewise.
8359 (arm_linux_remove_watchpoint): Likewise.
8360 (arm_linux_stopped_data_address): Likewise.
8361 (arm_linux_stopped_by_watchpoint): Likewise.
8362 (arm_linux_watchpoint_addr_within_range): Likewise.
8363 (arm_linux_new_thread): Likewise.
8364 (arm_linux_thread_exit): Likewise.
8365 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8366 related target callbacks. Register arm_linux_new_thread and
8367 arm_linux_thread_exit.
8368 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8369 * arm-tdep.c (arm_pc_is_thumb): Make global.
8370 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8371
b5db5dfc
UW
83722011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8373
8374 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8375 per-frame locations while within a function epilogue.
8376
e25b2cfa
PM
83772011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8378
8379 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8380 to GNU coding standards.
8381
4af53f97
PM
83822011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8383
8384 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8385 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8386 (ser_windows_close): Only call CancelIo if function exists.
8387 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8388 to check for existence of CancelIo function in kernel32 DLL.
8389
d0e92d82
HZ
83902011-02-21 Hui Zhu <teawater@gmail.com>
8391
8392 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8393 * ax-gdb.c (gen_printf_expr_callback): New function.
8394 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8395 * ax-general.c (ax_memcpy): New function.
8396 (ax_print): Handle "printf".
8397 (ax_reqs): Ditto.
8398 * ax.h (ax_memcpy): Forward declare.
8399 * common/ax.def (invalid2): Removed.
8400 (printf): New entry.
8401 * printcmd.c (printcmd.h): New include.
8402 (string_printf): New function.
8403 (ui_printf): Removed.
8404 (printf_command): Remove static. Call string_printf.
8405 (eval_command): Call string_printf.
8406 * printcmd.h: New file.
8407 * tracepoint.c (validate_actionline,
8408 encode_actions_1): handle printf_command.
8409
7d357efd
MS
84102011-02-19 Michael Snyder <msnyder@vmware.com>
8411
8412 * reverse.c (delete_one_bookmark): Argument is now bookmark
8413 id rather than pointer to bookmark struct.
8414 (delete_bookmark_command): Use get_number_or_range.
8415 (goto_bookmark_command): Parse with get_number instead of strtoul.
8416 (bookmark_1): New function. Print info for one bookmark.
8417 (bookmarks_info): Use get_number_or_range and bookmark_1.
8418
7a45ebd7
MS
84192011-02-18 Michael Snyder <msnyder@vmware.com>
8420
f2eb0bc8 8421 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8422 get_number_or_range.
65ebfb52 8423 (thread_apply_command): Ditto.
7a45ebd7 8424
94d5e490
TT
84252011-02-18 Tom Tromey <tromey@redhat.com>
8426
8427 * common/ax.def: New file.
8428 * ax.h (enum agent_op): Use ax.def.
8429 * ax-general.c (aop_map): Use ax.def.
8430
c7f96d2b
TT
84312011-02-18 Tom Tromey <tromey@redhat.com>
8432
8433 * ax-general.c (aop_map): Add pick and rot.
8434 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8435 <DW_OP_rot>: Implement.
8436 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8437 (ax_pick): Declare.
8438 * ax-general.c (ax_pick): New function.
8439
66694b75
TT
84402011-02-18 Tom Tromey <tromey@redhat.com>
8441
8442 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8443
eeaafae2
JK
84442011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8445 Tom Tromey <tromey@redhat.com>
8446
8447 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8448 make_symbol_overload_list_block with NULL BLOCK.
8449 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8450
3c3fe74c
PA
84512011-02-18 Pedro Alves <pedro@codesourcery.com>
8452
8453 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8454 * breakpoint.h (get_number_or_range): Declare.
8455 * printcmd.c (ALL_DISPLAYS): Declare.
8456 (delete_display): Reimplement taking a display pointer.
8457 (undisplay_command): Accept a range of displays to delete, using
8458 get_number_or_range.
8459
13163d80
PM
84602011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8461
8462 * c-valprint.c (c_val_print): Add embedded_offset to address
8463 for arrays of unspecified length.
8464 * p-valprint.c (pascal_val_print): Likewise.
8465
b434a28f
YQ
84662011-02-18 Yao Qi <yao@codesourcery.com>
8467
8468 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8469 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8470 (thumb_process_displaced_insn): New.
8471 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8472 call to arm_process_displaced_insn.
8473 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8474
9f6f94ff
TT
84752011-02-17 Tom Tromey <tromey@redhat.com>
8476
8477 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8478 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8479 compile_dwarf_to_ax. No longer static. Call
8480 dwarf2_compile_cfa_to_ax.
8481 (locexpr_tracepoint_var_ref): Update.
8482 (loclist_tracepoint_var_ref): Update.
8483 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8484 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8485 argument; add 'gdbarch' and 'pc'.
8486 (dwarf2_compile_cfa_to_ax): New function.
8487 (dwarf2_frame_cache): Update.
8488
e67ad678
JB
84892011-02-17 Joel Brobecker <brobecker@adacore.com>
8490
8491 * ada-lang.c (ada_type_of_array): Fix the size of the array
8492 in the case of an unconstrained packed array.
8493
946ebb0d
YQ
84942011-02-17 Yao Qi <yao@codesourcery.com>
8495
8496 * common/Makefile.in: Add more targets for make.
8497
1ba1b353
TT
84982011-02-16 Tom Tromey <tromey@redhat.com>
8499
8500 * dwarf2loc.c (unimplemented): Fix typo.
8501
b1bfef65
TT
85022011-02-16 Tom Tromey <tromey@redhat.com>
8503
8504 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8505 (compile_dwarf_to_ax) <default>: Use unimplemented.
8506 <DW_OP_deref>: Update.
8507 (disassemble_dwarf_expression): Update.
8508 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8509 (decode_locdesc): Update.
8510 * dwarf2expr.h (dwarf_stack_op_name): Update.
8511
5f1e6f19
TT
85122011-02-16 Tom Tromey <tromey@redhat.com>
8513
8514 * ax.h (struct aop_map) <name>: Now const.
8515
a0c78a73
PA
85162011-02-16 Tom Tromey <tromey@redhat.com>
8517
8518 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8519 than axs_rvalue.
8520
946ebb0d 85212011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8522
8523 * infrun.c (get_displaced_step_closure_by_addr): New.
8524 * inferior.h: Declare it.
8525 * arm-tdep.c: (arm_pc_is_thumb): Call
8526 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8527 returns non-NULL.
8528
08807d5a
PA
85292011-02-16 Pedro Alves <pedro@codesourcery.com>
8530 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 gdb/
8533 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8534
29976f3f
PA
85352011-02-16 Pedro Alves <pedro@codesourcery.com>
8536 Jan Kratochvil <jan.kratochvil@redhat.com>
8537
8538 * value.c (value_contents_copy_raw): Extend describing comment.
8539 Assert that the destination contents we're overwriting are wholly
8540 available.
fb68ae73 8541 (value_contents_copy): Extend describing comment.
29976f3f 8542
cd24cfaa
PA
85432011-02-16 Pedro Alves <pedro@codesourcery.com>
8544 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 * value.c (value_available_contents_eq): Remove redundant local
8547 variables. Fix available contents comparision.
8548 * value.h (value_available_contents_eq): Extend describing
8549 comment.
8550
60bbf338
YQ
85512011-02-16 Yao Qi <yao@codesourcery.com>
8552
8553 * thread.c (info_threads_command): Add missing i18n markup and remove
8554 trailing newline.
8555
17450429
PP
85562011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8557
8558 * breakpoint.c (longjmp_names): New variable.
8559 (struct breakpoint_objfile_data): New type.
8560 (breakpoint_objfile_key): New variable.
8561 (msym_not_found): New variable.
8562 (msym_not_found_p): New predicate.
8563 (get_breakpoint_objfile_data): New function.
8564 (create_overlay_event_breakpoint): Check per-objfile cache for
8565 symbols first.
8566 (create_longjmp_master_breakpoint): Likewise.
8567 (create_std_terminate_master_breakpoint): Likewise.
8568 (create_exception_master_breakpoint): Likewise.
8569 (_initialize_breakpoint): Register per-objfile data key.
8570
af02033e
PP
85712011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8572
8573 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8574 parameter value.
8575 (create_longjmp_master_breakpoint): Loop over longjmp names.
8576 (create_std_terminate_master_breakpoint): Const-propagate parameter
8577 value.
8578 (update_breakpoints_after_exec): Adjust.
8579 (breakpoint_re_set): Adjust.
8580
60f98dde
MS
85812011-02-15 Michael Snyder <msnyder@vmware.com>
8582
cdf99611
MS
8583 * thread.c (info_threads_command): Process arg as thread id,
8584 or list of thread ids.
8585 (thread_find_command): New command.
8586 (_initialize_thread): Document argument for info threads.
8587 Document 'thread find' command.
8588 * NEWS: Document new command "thread find".
60f98dde 8589
0feedb2c
JK
85902011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8591
8592 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8593 * aclocal.m4: Regenerated with aclocal-1.11.1.
8594 * common/configure: Regenerate with autoconf-2.64.
8595
648cd113
KW
85962011-02-15 Ken Werner <ken.werner@de.ibm.com>
8597
8598 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8599 bool data type to a size of one byte.
8600
5657161f
PA
86012011-02-15 Pedro Alves <pedro@codesourcery.com>
8602 Jan Kratochvil <jan.kratochvil@redhat.com>
8603
8604 * target.c (memory_xfer_live_readonly_partial): Document where to
8605 look for interface description.
8606
494e194e
YQ
86072011-02-15 Yao Qi <yao@codesourcery.com>
8608
8609 PR tdep/12352
8610 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8611 order to store PC value on stack instead of text section.
8612
d9492458
TJB
86132011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
8614
8615 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8616 the EFP register set size.
8617 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8618 data from the VMX register.
8619 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8620 and write data from/to the VMX register.
8621
cdf99611
MS
86222011-02-14 Michael Snyder <msnyder@vmware.com>
8623
8624 * command.h (enum command_class): New class 'no_set_class', for
8625 "show" commands without a corresponding "set" command.
8626 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8627 * copying.c (_initialize_copying): Ditto for "show copying" and
8628 "show warranty".
8629 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8630 "show version".
8631 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8632 which there is no corresponding "set" command (eg. "show copying").
8633
424447ee
PA
86342011-02-14 Pedro Alves <pedro@codesourcery.com>
8635 Jan Kratochvil <jan.kratochvil@redhat.com>
8636
8637 * exec.c (section_table_available_memory): Change `len' parameter
8638 type to ULONGEST.
8639 * exec.h (section_table_available_memory): Ditto.
8640 * value.h (read_value_memory): Rename the `offset' parameter to
8641 `embedded_offset'.
8642
c0f61f9c 86432011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 8644 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
8645
8646 * memrange.c (compare_mem_ranges): Mention sort order in
8647 describing comment.
8648 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8649 * tracepoint.c (traceframe_available_memory): Extend comment to
8650 mention what happens to RESULT when the target does not support
8651 the query.
8652
6bfc80c7
PA
86532011-02-14 Pedro Alves <pedro@codesourcery.com>
8654 Jan Kratochvil <jan.kratochvil@redhat.com>
8655
8656 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8657 range.
8658
e7303042
PA
86592011-02-14 Pedro Alves <pedro@codesourcery.com>
8660
8661 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8662 No longer handle NULL values.
8663
8af8e3bc
PA
86642011-02-14 Pedro Alves <pedro@codesourcery.com>
8665
8666 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8667 * value.c: Include "exceptions.h".
8668 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8669 generic error.
8670 * cp-abi.c: Include gdb_assert.h.
8671 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8672 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8673 errors.
8674 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8675 parameters. No longer returns -1 on error.
8676 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8677 `val' parameters.
8678 * cp-valprint.c: Include exceptions.h.
8679 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8680 the baseclass_offset. Handle unavailable base classes. Use
8681 val_print_invalid_address.
8682 * p-valprint.c: Include exceptions.h.
8683 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8684 when fetching the baseclass_offset. No longer expect
8685 baseclass_offset returning -1. Handle unavailable base classes.
8686 Use val_print_invalid_address.
8687 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8688 `valaddr' parameter, and change its type to gdb_byte pointer. Add
8689 `embedded_offset' and `val' parameters. Adjust.
8690 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
8691 parameter, and change its type to gdb_byte pointer. Add
8692 `embedded_offset' and `val' parameters. Adjust. No longer expect
8693 baseclass_offset returning -1.
8694 (value_dynamic_cast): Use value_contents_for_printing rather than
8695 value_contents. Adjust.
8696 (search_struct_field): No longer expect baseclass_offset returning
8697 -1.
8698 (search_struct_method): If reading memory from the target is
8699 necessary, wrap it in a new value to pass to baseclass_offset. No
8700 longer expect baseclass_offset returning -1.
8701 (find_method_list): No longer expect baseclass_offset returning
8702 -1. Use value_contents_for_printing rather than value_contents.
8703 * valprint.c (val_print_invalid_address): New function.
8704 * valprint.h (val_print_invalid_address): Declare.
8705 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8706 and `val' parameters. No longer expect baseclass_offset returning
8707 -1. Adjust.
8708 * gnu-v2-abi.c: Include "exceptions.h".
8709 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8710 parameters. Handle unavailable memory. Recurse through
8711 gnuv2_baseclass_offset directly, rather than through
8712 baseclass_offset. No longer returns -1 on not found, instead
8713 throw an error.
8714 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8715 `val' parameters. Adjust.
8716
1b28d0b3
PA
87172011-02-14 Pedro Alves <pedro@codesourcery.com>
8718
8719 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8720 almost but not quite adjacent.
8721
ec0a52e1
PA
87222011-02-14 Pedro Alves <pedro@codesourcery.com>
8723
8724 * value.h (value_entirely_available): Declare.
8725 * value.c (value_entirely_available): New function.
8726 * c-valprint.c (c_value_print): Don't try fetching the pointer's
8727 real type if the pointer is unavailable.
8728
24e6bcee
PA
87292011-02-14 Pedro Alves <pedro@codesourcery.com>
8730
8731 * valops.c (value_repeat): Use read_value_memory instead of
8732 read_memory.
8733
39d37385
PA
87342011-02-14 Pedro Alves <pedro@codesourcery.com>
8735
8736 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8737 * value.c (value_contents_copy_raw, value_contents_copy): New
8738 functions.
8739 (value_primitive_field): Use value_contents_copy_raw instead of
8740 memcpy.
8741 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8742 memcpy.
8743 (value_array, value_slice): Ditto.
8744 * valarith.c (value_subscripted_rvalue): Use
8745 value_contents_copy_raw instead of memcpy.
8746
a3d34bf4
PA
87472011-02-14 Pedro Alves <pedro@codesourcery.com>
8748
8749 <unavailable> references.
8750
8751 * valops.c (get_value_at): Use value_from_contents_and_address,
8752 avoiding read_memory.
8753
9fc6d940
PA
87542011-02-14 Pedro Alves <pedro@codesourcery.com>
8755
8756 * c-valprint.c (c_val_print): Print a string with unavailable
8757 contents as an array.
8758
5467c6c8
PA
87592011-02-14 Pedro Alves <pedro@codesourcery.com>
8760
8761 * value.h (unpack_bits_as_long): Delete declaration.
8762 (unpack_value_bits_as_long): Declare.
8763 (unpack_value_field_as_long): Declare.
8764 (value_field_bitfield): Declare.
8765 * value.c (unpack_bits_as_long): Rename to...
8766 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
8767 value parameters. Return the extracted result in a new output
8768 parameter. If the value contents are unavailable, return false,
8769 otherwise return true.
8770 (unpack_value_bits_as_long): New.
8771 (unpack_field_as_long): Rename to...
8772 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
8773 Add embedded_offset and value parameters. Return the extracted
8774 result in a new output parameter. If the value contents are
8775 unavailable, return false, otherwise return true.
8776 (unpack_value_field_as_long): New.
8777 (unpack_field_as_long_1): New.
8778 (unpack_field_as_long): Reimplement as wrapper around
8779 unpack_value_field_as_long_1.
8780 (value_field_bitfield): New function.
8781 * valops.c (value_fetch_lazy): When fetching a bitfield, use
8782 unpack_value_bits_as_long. Mark the value as unavailable, if it
8783 is unavailable.
8784 * jv-valprint.c (java_print_value_fields): Use
8785 value_field_bitfield.
8786 * p-valprint.c (pascal_object_print_value_fields): Use
8787 value_field_bitfield.
8788 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8789
3158c6ed
PA
87902011-02-14 Pedro Alves <pedro@codesourcery.com>
8791
8792 * value.c (get_internalvar_integer): Also return the int value of
8793 TYPE_CODE_INT INTERNALVAR_VALUE values.
8794 (set_internalvar): Don't special case TYPE_CODE_INT.
8795
9fbdca0d
PA
87962011-02-14 Pedro Alves <pedro@codesourcery.com>
8797
8798 * value.c (struct internalvar) <enum internalvar_kind>: Remove
8799 INTERNALVAR_POINTER.
8800 <pointer>: Delete.
8801 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8802 (set_internalvar): Remove special TYPE_CODE_PTR handling.
8803 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8804
c8c1c22f
PA
88052011-02-14 Pedro Alves <pedro@codesourcery.com>
8806
8807 * value.h (value_available_contents_eq): Declare.
8808 * value.c (find_first_range_overlap): New function.
8809 (value_available_contents_eq): New function.
8810 * valprint.c (val_print_array_elements): Use
8811 value_available_contents_eq.
8812 * ada-valprint.c (val_print_packed_array_elements): Use
8813 value_available_contents_eq.
8814 * jv-valprint.c (java_value_print): Use
8815 value_available_contents_eq.
8816
e6e4e701
PA
88172011-02-14 Pedro Alves <pedro@codesourcery.com>
8818
8819 * target.c (target_read_live_memory): New function.
8820 (memory_xfer_live_readonly_partial): New.
8821 (memory_xfer_partial): If reading from a traceframe, fallback to
8822 reading unavailable read-only memory from read-only regions of
8823 live target memory.
8824 * tracepoint.c (disconnect_tracing): Adjust.
8825 (set_current_traceframe): New, factored out from
8826 set_traceframe_number.
8827 (set_traceframe_number): Reimplement to only change the traceframe
8828 number on the GDB side.
8829 (do_restore_current_traceframe_cleanup): Adjust.
8830 (make_cleanup_restore_traceframe_number): New.
8831 (cur_traceframe_number): New global.
8832 (tfile_open): Set cur_traceframe_number to no traceframe.
8833 (set_tfile_traceframe): New function.
8834 (tfile_trace_find): If looking up a traceframe using any method
8835 other than by number, make sure the current tfile traceframe
8836 matches gdb's current traceframe. Update the current tfile
8837 traceframe if the lookup succeeded.
8838 (tfile_fetch_registers, tfile_xfer_partial)
8839 (tfile_get_trace_state_variable_value): Make sure the remote
8840 traceframe matches gdb's current traceframe.
8841 * remote.c (remote_traceframe_number): New global.
8842 (remote_open_1): Set it to -1.
8843 (set_remote_traceframe): New function.
8844 (remote_fetch_registers, remote_store_registers)
8845 (remote_xfer_memory, remote_xfer_partial)
8846 (remote_get_trace_state_variable_value): Make sure the remote
8847 traceframe matches gdb's current traceframe.
8848 (remote_trace_find): If looking up a traceframe using any method
8849 other than by number, make sure the current remote traceframe
8850 matches gdb's current traceframe. Update the current remote
8851 traceframe if the lookup succeeded.
8852 * infrun.c (fetch_inferior_event): Adjust.
8853 * tracepoint.h (set_current_traceframe): Declare.
8854 (get_traceframe_number, set_traceframe_number): Add describing
8855 comments.
8856
e6ca34fc
PA
88572011-02-14 Pedro Alves <pedro@codesourcery.com>
8858
8859 Mark pieces of values as unavailable if the corresponding memory
8860 is unavailable.
8861
8862 * valops.c: Include tracepoint.h.
8863 (value_fetch_lazy): Use read_value_memory.
8864 (read_value_memory): New.
8865 * value.h (read_value_memory): Declare.
8866 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8867 * exec.c (section_table_available_memory): New function.
8868 * exec.h (section_table_available_memory): Declare.
8869
2a7498d8
PA
88702011-02-14 Pedro Alves <pedro@codesourcery.com>
8871
8872 * Makefile.in (SFILES): Add memrange.c.
8873 (HFILES_NO_SRCDIR): Add memrange.h.
8874 (COMMON_OBS): Add memrange.o.
8875 * memrange.c: New file.
8876 * memrange.h: New file.
8877 * tracepoint.c: Include memrange.h.
8878 (struct mem_range): Delete.
8879 (mem_range_s): Delete.
8880 (traceframe_available_memory): New function.
8881 * tracepoint.h (traceframe_available_memory): Declare.
8882
b3b9301e
PA
88832011-02-14 Pedro Alves <pedro@codesourcery.com>
8884
8885 * target.h (struct traceframe_info): Forward declare.
8886 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8887 (struct target_ops) <to_traceframe_info>: New field.
8888 (target_traceframe_info): New.
8889 * target.c (update_current_target): Inherit and default
8890 to_traceframe_info.
8891 * remote.c (PACKET_qXfer_traceframe_info): New.
8892 (remote_protocol_features): Register qXfer:traceframe-info:read.
8893 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8894 (remote_traceframe_info): New.
8895 (init_remote_ops): Install it.
8896 (_initialize_remote): Install "set/show remote traceframe-info"
8897 commands.
8898 * tracepoint.h (parse_traceframe_info): Declare.
8899 * tracepoint.c (struct mem_range): New.
8900 (mem_range_s): New typedef.
8901 (struct traceframe_info): New.
8902 (traceframe_info): New global.
8903 (free_traceframe_info): New function.
8904 (clear_traceframe_info): New function.
8905 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8906 info.
8907 (build_traceframe_info): New function.
8908 (tfile_traceframe_info): New function.
8909 (init_tfile_ops): Install tfile_traceframe_info.
8910 (traceframe_info_start_memory, free_result): New functions.
8911 (memory_attributes, traceframe_info_elements): New globals.
8912 (parse_traceframe_info, get_traceframe_info): New functions.
8913 * features/traceframe-info.dtd: New file.
8914 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8915
4e07d55f
PA
89162011-02-14 Pedro Alves <pedro@codesourcery.com>
8917
8918 Base support for <unavailable> value contents.
8919
4e07d55f
PA
8920 * value.h (value_bytes_available): Declare.
8921 (mark_value_bytes_unavailable): Declare.
8922 * value.c (struct range): New struct.
8923 (range_s): New typedef.
8924 (ranges_overlap): New function.
8925 (range_lessthan): New function.
8926 (ranges_contain_p): New function.
8927 (struct value) <unavailable>: New field.
8928 (value_bytes_available): New function.
8929 (mark_value_bytes_unavailable): New function.
8930 (require_not_optimized_out): Constify parameter.
8931 (require_available): New function.
8932 (value_contents_all, value_contents): Require all bytes be
8933 available.
8934 (value_free): Free `unavailable'.
8935 (value_copy): Copy `unavailable'.
8936 * valprint.h (val_print_unavailable): Declare.
8937 * valprint.c (valprint_check_validity): Rename `offset' parameter
8938 to `embedded_offset'. If printing a scalar, check whether the
8939 value chunk is available.
8940 (val_print_unavailable): New.
8941 (val_print_scalar_formatted): Check whether the value is
8942 available.
8943 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8944 pretty-printing unavailable values.
8945
bc9a5551
JK
89462011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 Fix const/volatile qualifiers of C++ types, PR c++/12328.
8949 * c-typeprint.c (c_type_print_args): Update the function comment. New
8950 variable param_type, initialize it. Remove const/volatile qualifiers
8951 for language_cplus and !show_artificial. Use param_type.
8952
93b55aa1
JK
89532011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8954
8955 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8956 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
8957 * symtab.h (struct symtab) <next>: Comment extension.
8958
181d9476
YQ
89592011-02-12 Yao Qi <yao@codesourcery.com>
8960
8961 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8962
b708a5c7
JK
89632011-02-11 Yao Qi <yao@codesourcery.com>
8964
8965 * common/Makefile.in: Add copyright header.
8966
c5187ac6
PA
89672011-02-11 Pedro Alves <pedro@codesourcery.com>
8968
8969 * infrun.c (proceed): Move switching out and in of tfind mode from
8970 here ...
8971 (fetch_inferior_event): ... to here.
8972
4f3e6fb7
YQ
89732011-02-11 Yao Qi <yao@codesourcery.com>
8974
8975 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8976 libcommon.a.
8977 * configure.ac: Add common to sub dir.
8978 * configure: Regenerate.
8979
b708a5c7
JK
89802011-02-11 Yao Qi <yao@codesourcery.com>
8981
8982 Build libcommon.a.
8983
8984 * common/Makefile.in: New.
8985 * common/configure.ac: New.
8986 * common/aclocal.m4: New.
8987 * common/configure: Generate.
8988
2287cc7e
PA
89892011-02-10 Pedro Alves <pedro@codesourcery.com>
8990
8991 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8992 side of the parenthesis.
8993
8994 Merge from GCC:
8995 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 8996 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 8997
fd62cb89
MS
89982011-02-08 Michael Snyder <msnyder@vmware.com>
8999
9000 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9001
56d2815c
JK
90022011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9003
9004 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9005 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9006 psubd and paddd.
9007
4f7d61a8
JK
90082011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9009
9010 PR 12361.
9011 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9012 phsubsw.
9013 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9014 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9015
54fcddd0
UW
90162011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9017
9018 * dwarf2read.c (read_subroutine_type): Set special calling
9019 convention flag for functions compiled by IBM XL C for OpenCL.
9020 * ppc-sysv-tdep.c: Include "dwarf2.h"
9021 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9022 calling convention.
9023 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9024 IBM OpenCL vector types calling convention.
9025 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9026 (ppc_sysv_abi_broken_return_value): Likewise.
9027 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9028 types calling convention.
9029 (ppc64_sysv_abi_return_value): Likewise.
9030 * spu-tdep.c: Include "dwarf2.h"
9031 (spu_return_value): Implement IBM OpenCL vector types calling
9032 convention.
9033
d6dafb7c
UW
90342011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9035
9036 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9037 correct ABI for AltiVec vector arguments.
9038
32b72a42
PA
90392011-02-07 Pedro Alves <pedro@codesourcery.com>
9040
9041 * valprint.c (val_print): Extend comment.
9042 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9043 interface explanation to val_print.
9044 (ada_val_print_array): Adjust comment to current interface.
9045 (print_field_values): Adjust comment to current interface.
9046 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9047 explanation to val_print.
9048 * f-valprint.c (f_val_print): Ditto.
9049 * jv-valprint.c (java_val_print): Ditto.
9050 * m2-valprint.c (m2_val_print): Ditto.
9051 * p-valprint.c (pascal_val_print): Ditto.
9052
9998af43
TJB
90532011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9054
9055 * breakpoint.c (parse_breakpoint_sals): Fix description.
9056
505500db 90572011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9058 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9059
9060 * python/py-inferior.c (python_on_normal_stop): New function.
9061 (python_on_resume): New function.
9062 (python_inferior_exit): New function.
9063 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9064 inferior_exit observers.
9065 * python/py-evtregistry.c: New file.
9066 * python/py-threadevent.c : New file.
9067 * python/py-event.c: New file.
9068 * python/py-evts.c: New file.
9069 * python/py-continueevent.c: New file.
9070 * python/py-bpevent.c: New file.
9071 * python/py-signalevent.c: New file.
9072 * python/py-exetiedevent.c: New file.
9073 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9074 Move struct breakpoint_object from here...
9075 * python/python-internal.h: ... to here.
9076 * python/py-event.h: New file.
9077 * python/py-events.h: New file.
9078 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9079 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9080 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9081 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9082 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9083 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9084 Add build rules for all the above.
9085
9e0ac564
TT
90862011-02-04 Tom Tromey <tromey@redhat.com>
9087
9088 * dwarf2read.c (dwarf2_section_empty_p): New function.
9089 (dwarf2_read_section): Use dwarf2_section_empty_p.
9090 (dwarf2_section_size): New function.
9091 (dwarf2_get_section_info): Unconditionally read section.
9092 (dwarf2_read_index): Use dwarf2_section_empty_p.
9093 (partial_read_comp_unit_head): Use dwarf2_section_size.
9094 (dwarf2_symbol_mark_computed): Likewise.
9095
eee5b35e
DD
90962011-02-04 David Daney <ddaney@caviumnetworks.com>
9097
9098 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9099
385203ed
DD
91002011-02-04 David Daney <ddaney@caviumnetworks.com>
9101
9102 * mips-linux-tdep.c: Include xml-syscall.h.
9103 (mips_linux_get_syscall_number): New function.
9104 (mips_linux_init_abi): Add calls to
9105 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9106 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9107 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9108 * syscalls/mips-n32-linux.xml: New file.
9109 * syscalls/mips-n64-linux.xml: New file.
9110 * syscalls/mips-o32-linux.xml: New file.
9111
9277c30c
UW
91122011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9113
9114 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9115 Complain about inverted range entries.
9116 (dwarf2_record_block_ranges): Likewise.
9117
a3be7890
TJB
91182011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9119
9120 Fix some typos.
9121 * breakpoint.c (update_watchpoint): Fix name of the
9122 update_global_location_list function.
9123 (print_one_breakpoint): Fix typo.
9124 (_initialize_breakpoint): Remove extra space in hbreak help
9125 string.
9126 * breakpoint.h (struct bp_location) <length>: Fix field
9127 description.
9128
041274d8
PA
91292011-02-04 Pedro Alves <pedro@codesourcery.com>
9130
9131 * regcache.c (registers_changed_ptid): Don't explictly always
9132 clear `current_regcache'. Only clear current_thread_ptid and
9133 current_thread_arch when PTID matches. Only reinit the frame
9134 cache if PTID matches the current inferior_ptid. Move alloca(0)
9135 call to ...
9136 (registers_changed): ... here.
9137
c1c2ab58
UW
91382011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9139
9140 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9141 starts with __stack_chk_guard as stack guard symbol.
9142
9011945e
AB
91432011-02-03 Andrew Burgess <aburgess@broadcom.com>
9144
9145 * disasm.c (compare_lines): Handle the end of sequence markers
9146 within the line table to better support disassembling over
9147 compilation unit boundaries.
9148
e0634ccf
UW
91492011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9150
9151 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9152 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9153 implementation even if no symbols are available.
9154 (thumb_analyze_prologue): Update call to skip_prologue_function.
9155 (arm_analyze_prologue): Likewise.
9156
0e9e9abd
UW
91572011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9158
9159 * arm-tdep.c: Include "observer.h".
9160 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9161 (arm_exidx_data_key): New static variable.
9162 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9163 (struct arm_exidx_data): Likewise.
9164 (arm_exidx_data_free): New function.
9165 (arm_compare_exidx_entries): Likewise.
9166 (arm_obj_section_from_vma): Likewise.
9167 (arm_exidx_new_objfile): Likewise.
9168 (arm_find_exidx_entry): Likewise.
9169 (arm_exidx_fill_cache): Likewise.
9170 (arm_exidx_unwind_sniffer): Likewise.
9171 (arm_exidx_unwind): New global variable.
9172 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9173 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9174 observer. Register arm_exidx_data_key as objfile data.
9175
2e9e421f
UW
91762011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9177
9178 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9179 due to accessing uninitialized variable. Fix indentation.
9180
580688f3
PA
91812011-02-02 Pedro Alves <pedro@codesourcery.com>
9182
9183 * c-valprint.c (c_value_print): When doing virtual base pointer
9184 adjustment, create a new value with adjusted contents rather than
9185 changing the contents of the value being printed (and getting it
9186 wrong).
9187
3d2c1d41
PA
91882011-02-02 Pedro Alves <pedro@codesourcery.com>
9189
9190 * xml-support.c (xml_find_attribute): New.
9191 (xinclude_start_include): Use it.
9192 * xml-support.h (xml_find_attribute): Declare.
9193 * memory-map.c (memory_map_start_memory)
9194 (memory_map_start_property): Use xml_find_attribute.
9195 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9196 xml_find_attribute.
9197 * remote.c (start_thread): Use xml_find_attribute.
9198 * solib-target.c (library_list_start_segment)
9199 (library_list_start_section, library_list_start_library)
9200 (library_list_start_list): Use xml_find_attribute.
9201 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9202 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9203 (tdesc_start_field): Use xml_find_attribute.
9204
0af3e2db
UW
92052011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9206
9207 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9208 (BUILD_OCL_VTYPES): Update.
9209
c1039e3c
JB
92102011-02-02 Joel Brobecker <brobecker@adacore.com>
9211
9212 * configure.ac: Work around non-GNU sed limitation when computing
9213 python version number.
9214 * configure: Regenerate.
9215
600ea1be
JK
92162011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9217
9218 Fix debug printing of TYPE_INSTANCE.
9219 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9220 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9221
56c12414
JK
92222011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9223
9224 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9225 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9226 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9227 * ada-operator.inc: Rename the file to ...
9228 * ada-operator.def: ... here, wrap all the entries by macro OP.
9229 * expprint.c (op_name_standard): Remove all the entries. Include
9230 "std-operator.def" instead.
9231 * expression.h (enum exp_opcode): Include "std-operator.def" and
9232 "ada-operator.def". Move all the entries ...
9233 * std-operator.def: ... here, wrap all the entries by macro OP.
9234
c52b559d
PP
92352011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9236
9237 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9238 * breakpoint.c (remove_jit_event_breakpoints): New function.
9239 * jit.c (jit_descriptor_addr): Delete.
9240 (registering_code): Delete.
9241 (clear_int): Delete.
9242 (jit_inferior_data): New variable.
9243 (struct jit_inferior_data): New type.
9244 (get_jit_inferior_data): New function.
9245 (jit_inferior_data_cleanup): New function.
9246 (jit_read_descriptor): Adjust.
9247 (jit_register_code): Adjust.
9248 (jit_breakpoint_re_set_internal): New function; move code here ...
9249 (jit_inferior_init): ... from here.
9250 (jit_breakpoint_re_set): Adjust.
9251 (jit_reset_inferior_data_and_breakpoints): New function.
9252 (jit_inferior_created_observer): Adjust.
9253 (jit_inferior_exit_hook): Adjust.
9254 (jit_executable_changed_observer): New function.
9255 (jit_event_handler): Adjust.
9256 (_initialize_jit): Adjust.
9257
e839132d
MS
92582011-01-31 Michael Snyder <msnyder@vmware.com>
9259
9260 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9261 line.
9262
47a80e90
TT
92632011-01-31 Tom Tromey <tromey@redhat.com>
9264
9265 PR python/12216:
9266 * python/python.c (execute_gdb_command): Call
9267 prevent_dont_repeat.
9268 * top.c (suppress_dont_repeat): New global.
9269 (dont_repeat): Use it.
9270 (prevent_dont_repeat): New function.
9271 * command.h (prevent_dont_repeat): Declare.
9272
45a43567
TT
92732011-01-31 Tom Tromey <tromey@redhat.com>
9274
9275 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9276 * python/py-breakpoint.c (bppy_set_silent): Use
9277 breakpoint_set_silent.
9278 (bppy_set_thread): Use breakpoint_set_thread.
9279 (bppy_set_task): Use breakpoint_set_task.
9280 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9281 (breakpoint_set_task): Declare.
9282 (make_breakpoint_silent): Remove.
9283 * breakpoint.c (breakpoint_set_silent): New function.
9284 (breakpoint_set_thread): Likewise.
9285 (breakpoint_set_task): Likewise.
9286 (make_breakpoint_silent): Remove.
9287
09d682a4
TT
92882011-01-31 Tom Tromey <tromey@redhat.com>
9289
9290 * breakpoint.h (user_breakpoint_p): Declare.
9291 * breakpoint.c (user_breakpoint_p): New function.
9292 (breakpoint_1): Use it.
9293 (save_breakpoints): Likewise.
9294
9c4ea6c5
JB
92952011-01-31 Joel Brobecker <brobecker@adacore.com>
9296
9297 * configure.ac: Add handling of Python distribution on Windows.
9298 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9299 sysconfig variables are not defined, then do not use them.
9300 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9301 instead. On Windows, return all paths using forward-slashes
9302 rather than backslashes.
9303
ac534cba
JB
93042011-01-31 Joel Brobecker <brobecker@adacore.com>
9305
9306 * configure.ac: Remove fallback behavior for building
9307 against Python. Remove tweaking of Python include path.
9308 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9309 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9310 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9311 Always restore CPPFLAGS and LIBS after linking test.
9312 * configure: Regenerated.
9313 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9314 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9315 * python/python-internal.h: Adjust includes of Python .h files.
9316
c2f0d045
JB
93172011-01-31 Joel Brobecker <brobecker@adacore.com>
9318
9319 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9320 in error message.
9321
6b0c4c1f
JB
93222011-01-31 Joel Brobecker <brobecker@adacore.com>
9323
9324 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9325 value test.
9326
672c9795
YQ
93272011-01-31 Yao Qi <yao@codesourcery.com>
9328
9329 * arm-linux-nat.c: Update calls to regcache_register_status
9330 instead of regcache_valid_p.
9331 * aix-thread.c: Likewise.
9332 * i386gnu-nat.c: Likewise.
9333
80b23b6a
JK
93342011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9335
9336 Fix crash.
9337 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9338 touching TYPE_FIELD_ARTIFICIAL.
9339
4cd712bd
RE
93402011-01-28 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9343 Committers.
9344
ffd5ec24
PA
93452011-01-28 Pedro Alves <pedro@codesourcery.com>
9346
9347 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9348 selected, don't try iterating over the traceframe's blocks.
9349 (tfile_has_stack): If there's no traceframe selected, then there's
9350 no stack.
9351 (tfile_has_registers): If there's no traceframe selected, then
9352 there's no registers.
9353
e8c9e0a1
PA
93542011-01-28 Pedro Alves <pedro@codesourcery.com>
9355
9356 * target.c (memory_xfer_partial): No need to restore shadows if we
9357 haven't read anything.
9358
de15c4ab
PA
93592011-01-28 Pedro Alves <pedro@codesourcery.com>
9360
9361 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9362 and val_print_scalar_formatted.
9363
9f41c731
PA
93642011-01-27 Pedro Alves <pedro@codesourcery.com>
9365
9366 * tracepoint.c (tfile_read): New.
9367 (tfile_open): Use it.
9368 (tfile_get_traceframe_address): Use it.
9369 (tfile_trace_find): Use it.
9370 (walk_blocks_callback_func): New typedef.
9371 (match_blocktype): New function.
9372 (traceframe_walk_blocks): New function.
9373 (traceframe_find_block_type): New function.
9374 (tfile_fetch_registers, tfile_xfer_partial)
9375 (tfile_get_trace_state_variable_value): Use
9376 traceframe_find_block_type and tfile_read.
9377
cdefc55d
KB
93782011-01-26 Kevin Buettner <kevinb@redhat.com>
9379
9380 * remote-mips.c: Add internationalization mark ups. Remove
9381 trailing \n from already marked up strings.
9382
a81766d8
TT
93832011-01-26 Tom Tromey <tromey@redhat.com>
9384
9385 * python/py-prettyprint.c (print_string_repr): Clear
9386 'addressprint' option when calling val_print_string.
9387 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9388 option when calling val_print_string.
9389
74aedc46
TT
93902011-01-26 Tom Tromey <tromey@redhat.com>
9391
9392 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9393 GDB_PY_LL_ARG.
9394 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9395 macros.
9396 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9397 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9398 (gdb_py_long_as_ulongest): New defines.
9399 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9400 (gdb_py_int_as_long): Declare.
9401 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9402 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9403 (valpy_long): Add comment.
9404 * python/py-utils.c (get_addr_from_python): Use
9405 gdb_py_long_as_ulongest. Handle overflow properly.
9406 (gdb_py_object_from_longest): New function.
9407 (gdb_py_object_from_ulongest): Likewise.
9408 (gdb_py_int_as_long): Likewise.
9409 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9410 * python/py-symtab.c (salpy_get_pc): Use
9411 gdb_py_long_from_ulongest.
9412 (salpy_get_line): Use PyInt_FromLong.
9413 * python/py-param.c (set_parameter_value): Use
9414 gdb_py_int_as_long.
9415 * python/py-lazy-string.c (stpy_get_address): Use
9416 gdb_py_long_from_ulongest.
9417 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9418 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9419 * python/py-breakpoint.c (bppy_set_thread): Use
9420 gdb_py_int_as_long.
9421 (bppy_set_task): Likewise.
9422 (bppy_set_ignore_count): Likewise.
9423 (bppy_set_hit_count): Likewise.
9424 * python/py-block.c (blpy_get_start): Use
9425 gdb_py_object_from_ulongest.
9426 (blpy_get_end): Likewise.
9427 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9428
e4f6d2ec
TJB
94292011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9430
9431 PR/symtab 11766:
9432 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9433 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9434 equality test for objfile, initialize addr_low if needed.
9435
b30aa278
PA
94362011-01-25 Pedro Alves <pedro@codesourcery.com>
9437
9438 * tui/tui-regs.c (tui_register_format): Remove dead code.
9439
ab2188aa
PA
94402011-01-25 Pedro Alves <pedro@codesourcery.com>
9441
9442 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9443 instead of print_scalar_formatted.
9444 (print_scalar_formatted): Don't handle 's' format strings here,
9445 and add an assertion that we never see such format here.
9446 * valprint.h (val_print_scalar_formatted): Declare.
9447 * valprint.c (val_print_scalar_formatted): New.
9448 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9449 instead of print_scalar_formatted.
9450 * jv-valprint.c (java_val_print): Ditto.
9451 * p-valprint.c (pascal_val_print): Ditto.
9452 * ada-valprint.c (ada_val_print_1): Ditto.
9453 * f-valprint.c (f_val_print): Ditto.
9454 * infcmd.c (registers_info): Ditto.
9455 * m2-valprint.c (m2_val_print): Ditto.
9456
66d61a4c
PA
94572011-01-25 Pedro Alves <pedro@codesourcery.com>
9458
9459 * m2-valprint.c (print_unbounded_array): Pass
9460 value_contents_for_printing rather than value_contents, to
9461 m2_print_array_contents. Also pass in the value.
9462
831adc1f
JK
94632011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9464
9465 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9466 (save_gdb_index_command): Switch to .gdb_index version 4.
9467
20622269
PA
94682011-01-25 Pedro Alves <pedro@codesourcery.com>
9469
9470 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9471 than frame_register, and always pass a valid value to val_print.
9472
585fdaa1
PA
94732011-01-25 Pedro Alves <pedro@codesourcery.com>
9474
9475 Centralize printing "<optimized out>".
9476
9477 * valprint.h (val_print_optimized_out): Declare.
9478 * cp-valprint.c (cp_print_value_fields): Use
9479 val_print_optimized_out.
9480 * jv-valprint.c (java_print_value_fields): Ditto.
9481 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9482 * printcmd.c (print_formatted): Ditto.
9483 * valprint.c (valprint_check_validity): Ditto.
9484 (value_check_printable): Ditto.
9485 (val_print_optimized_out): New.
9486
29ec5263
PA
94872011-01-25 Pedro Alves <pedro@codesourcery.com>
9488
9489 * infcmd.c (default_print_registers_info): Allocate values so to
9490 never pass a NULL value to val_print.
9491
de4127a3
PA
94922011-01-25 Pedro Alves <pedro@codesourcery.com>
9493
9494 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9495 boolean. Make sure to always pass a value that matches the
9496 contents buffer to callees. Preserve `address' for following
9497 iterations.
9498 * value.c (value_contents_for_printing_const): New.
9499 (value_address): Constify value argument.
9500 * value.h (value_contents_for_printing_const): Declare.
9501 (value_address): Constify value argument.
9502
ee99023e
PA
95032011-01-25 Pedro Alves <pedro@codesourcery.com>
9504
9505 * regcache.c (struct regcache_descr): Rename
9506 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9507 and sizeof_cooked_register_valid_p to
9508 sizeof_cooked_register_status.
9509 (init_regcache_descr): Adjust.
9510 (struct regcache): Rename register_valid_p field to
9511 register_status.
9512 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9513 (do_cooked_read): Adjust.
9514 (regcache_valid_p): Rename to ...
9515 (regcache_register_status): ... this. Adjust.
9516 (regcache_invalidate): Adjust.
9517 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9518 Adjust.
9519 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9520 as unavailable, not valid.
9521 (regcache_dump): Adjust.
9522 * regcache.h (enum register_status): New.
9523 (regcache_register_status): Declare.
9524 (regcache_invalidate): Delete declaration.
9525 * corelow.c (get_core_registers): Adjust.
9526 * tracepoint.c (tfile_fetch_registers): Adjust.
9527 * trad-frame.c (REG_VALUE): Rename to ...
9528 (TF_REG_VALUE): ... this.
9529 (REG_UNKNOWN): Rename to ...
9530 (TF_REG_UNKNOWN): ... this.
9531 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9532 * mi/mi-main.c (register_changed_p): Adjust.
9533
99e42fd8
PA
95342011-01-25 Pedro Alves <pedro@codesourcery.com>
9535
9536 * regcache.c (struct regcache_descr): Remove outdated comment.
9537 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9538 overallocate hack.
9539 (regcache_xmalloc): Rename to ...
9540 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9541 Allocate the regcache type accordingly.
9542 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9543 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9544 cooked registers, not raw.
9545 (regcache_dup_no_passthrough): Delete.
9546 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9547 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9548 mention obsolete write_register_bytes.
9549 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9550
f7605bc2
PA
95512011-01-25 Pedro Alves <pedro@codesourcery.com>
9552
9553 Stop remote_read_bytes from handling partial reads itself.
9554
9555 * remote-fileio.c: Include target.h.
9556 (remote_fileio_write_bytes): Delete.
9557 (remote_fileio_func_open, remote_fileio_func_write)
9558 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9559 target_read_memory.
9560 (remote_fileio_func_stat): Use target_read_memory and
9561 target_write_memory.
9562 (remote_fileio_func_gettimeofday): Use target_write_memory.
9563 (remote_fileio_func_system): Use target_read_memory.
9564 * remote.c (remote_write_bytes): Make it static.
9565 (remote_read_bytes): Don't handle partial reads here.
9566 * remote.h (remote_read_bytes): Delete declaration.
9567
efc0eabd
PA
95682011-01-25 Pedro Alves <pedro@codesourcery.com>
9569
9570 Simplify XML parsing a bit.
9571
9572 * xml-support.h (gdb_xml_parse_quick): Declare.
9573 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9574 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9575 parameter.
9576 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9577 gdb_xml_create_parser_and_cleanup_1.
9578 (gdb_xml_parse_quick): New.
9579 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9580 * osdata.c (osdata_parse): Ditto.
9581 * remote.c (remote_threads_info): Ditto.
9582 * solib-target.c (solib_target_parse_libraries): Ditto.
9583 * xml-syscall.c (syscall_parse_xml): Ditto.
9584 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9585
314d366a
KB
95862011-01-24 Kevin Buettner <kevinb@redhat.com>
9587
9588 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9589 with remote-mips.o added to gdb_target_obs.
9590 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9591
a491d753
PA
95922011-01-24 Pedro Alves <pedro@codesourcery.com>
9593
9594 * ada-valprint.c (val_print_packed_array_elements): Pass the
9595 correct struct value to val_print.
9596 (ada_val_print_1): Ditto.
9597
490f124f
PA
95982011-01-24 Pedro Alves <pedro@codesourcery.com>
9599
9600 Don't lose embedded_offset in printing routines throughout.
9601
9602 * valprint.h (val_print_array_elements): Change prototype.
9603 * valprint.c (val_print_array_elements): Add `embedded_offset'
9604 parameter, and adjust to pass it down to val_print, while passing
9605 `valaddr' or `address' unmodified. Take embedded_offset into
9606 account when checking repetitions.
9607 * c-valprint.c (c_val_print): Pass embedded_offset to
9608 val_print_array_elements instead of adjusting `valaddr' and
9609 `address'.
9610 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9611 embedded_offset to val_print_array_elements instead of adjusting
9612 `valaddr'.
9613 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9614 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9615 val_print_array_elements and pascal_object_print_value_fields
9616 instead of adjusting `valaddr'.
9617 (pascal_object_print_value_fields): Add `offset' parameter, and
9618 adjust to use it.
9619 (pascal_object_print_value): Add `offset' parameter, and adjust to
9620 use it.
9621 (pascal_object_print_static_field): Use
9622 value_contents_for_printing/value_embedded_offset, rather than
9623 value_contents.
9624 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9625 parameter, and adjust to use it. Use
9626 value_contents_for_printing/value_embedded_offset, rather than
9627 value_contents.
9628 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9629 (ada_val_print_array): Add `offset' parameter, and adjust to use
9630 it.
9631 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9632 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9633 Instead work with offsets. Use
9634 value_contents_for_printing/value_embedded_offset, rather than
9635 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9636 and use value_from_pointer to extract a target pointer, rather
9637 than value_from_longest.
9638 (print_variant_part): Add `offset' parameter. Replace
9639 `outer_valaddr' parameter by a new `outer_offset' parameter.
9640 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9641 (ada_value_print): Use
9642 value_contents_for_printing/value_embedded_offset, rather than
9643 value_contents.
9644 (print_record): Add `offset' parameter, and adjust to pass it
9645 down.
9646 (print_field_values): Add `offset' parameter. Replace
9647 `outer_valaddr' parameter by a new `outer_offset' parameter.
9648 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9649 Use value_contents_for_printing/value_embedded_offset, rather than
9650 value_contents.
9651 * d-valprint.c (dynamic_array_type): Use
9652 value_contents_for_printing/value_embedded_offset, rather than
9653 value_contents.
9654 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9655 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9656 (java_print_value_fields): Take `offset' into account. Don't
9657 re-adjust `valaddr'. Instead pass down adjusted offsets.
9658 (java_val_print): Take `embedded_offset' into account. Pass it to
9659 java_print_value_fields.
9660 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9661 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9662 down adjusted offsets.
9663 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9664 (f_val_print): Take `embedded_offset' into account.
9665
7bfc9434
JB
96662011-01-21 Joel Brobecker <brobecker@adacore.com>
9667
9668 * inflow.c: Include "gdbcmd.h".
9669 (interactive_mode): New static global, moved here from top.c.
9670 (show_interactive_mode): New function, moved here from top.c.
9671 use gdb_has_a_terminal instead of input_from_terminal_p to
9672 determine the current mode.
9673 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9674 setting.
9675 (_initialize_inflow): Add the "set/show interactive-mode"
9676 commands. Moved here from top.c, after having adjusted slightly
9677 the help text.
9678 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9679 to inflow.c.
9680 (input_from_terminal_p): Remove handling of "interactive-mode"
9681 setting, moved to infow.c.
9682 (init_main): Remove creation of the "set/show interactive-mode"
9683 commands, moved to inflow.c.
9684
44603653
JB
96852011-01-19 Joel Brobecker <brobecker@adacore.com>
9686
9687 * NEWS: Add entry for native ia64-hpux support.
9688
4694da01
TT
96892011-01-19 Tom Tromey <tromey@redhat.com>
9690
9691 PR mi/8618:
9692 * thread.c (free_thread): Free 'name'.
9693 (print_thread_info): Emit thread name. Change CLI output.
9694 (thread_name_command): New function.
9695 (do_captured_thread_select): Emit newline.
9696 (_initialize_thread): Register 'thread name' command.
9697 * target.h (struct target_ops) <to_thread_name>: New field.
9698 (target_thread_name): New macro.
9699 * target.c (update_current_target): Handle to_thread_name.
9700 * python/py-infthread.c (thpy_get_name): New function.
9701 (thpy_set_name): Likewise.
9702 (thread_object_getset): Add "name".
9703 * linux-nat.c (linux_nat_thread_name): New function.
9704 (linux_nat_add_target): Set to_thread_name.
9705 * gdbthread.h (struct thread_info) <name>: New field.
9706
10d44370
JB
97072011-01-18 Joel Brobecker <brobecker@adacore.com>
9708
9709 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9710 (ada_val_print_1): Likewise.
9711
e3acb115
JB
97122011-01-18 Joel Brobecker <brobecker@adacore.com>
9713
9714 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9715 upper limit address is not greater than the function end address
9716 when the upper limit could not be computed using the debugging
9717 info.
9718
dc92e161
TT
97192011-01-17 Tom Tromey <tromey@redhat.com>
9720
9721 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
9722 get_regcomp_error.
9723 * utils.c: Include gdb_regex.h.
9724 (do_regfree_cleanup): New function.
9725 (make_regfree_cleanup): Likewise.
9726 (get_regcomp_error): Likewise.
9727 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9728
f55af66d
TT
97292011-01-17 Tom Tromey <tromey@redhat.com>
9730
9731 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
9732 re_compile_fastmap.
9733
a5a44b53
PM
97342011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9735
9736 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9737 for internal variables.
9738 (last_was_structop): New static variable.
9739 (COMPLETE): New token.
9740 (field_exp): New rule to group all '.' suffix handling.
9741 Add mark_struct_expression calls when approriate to be able
9742 to correctly find fields for completion.
9743 (yylex): Adapt to handle field completion and set INTVAR when
9744 required.
9745
2c291032
YQ
97462011-01-14 Yao Qi <yao@codesourcery.com>
9747
9748 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9749 save_reggroup, restore_reggroup and all_reggroup.
9750
447b483c
JB
97512011-01-14 Joel Brobecker <brobecker@adacore.com>
9752
9753 * ada-valprint. (ada_printchar): Use the correct type length
9754 in call to ada_emit_char.
9755 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9756
7b64a93b
PM
97572011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9758
9759 * solib-som.h (hpux_major_release): Declare variable here.
9760 * solib-som.c: Remove <sys/utsname.h> header.
9761 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9762 (hpux_major_release): Make global, change default value to
9763 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 9764 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
9765 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9766 Add "solib-som.h" header.
9767 (set_hpux_major_release): New function.
9768 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9769
4e18c053
MF
97702011-01-14 Mike Frysinger <vapier@gentoo.org>
9771
9772 * configure.tgt (*-*-uclinux*): Match more Linux os targets
9773
a9df6b22
JB
97742011-01-14 Joel Brobecker <brobecker@adacore.com>
9775
9776 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9777 new-line at end of warning message.
9778 (ia64_hpux_store_register): Remove trailing new-line at end of
9779 error message.
9780 * ia64-hpux-tdep.c: Rephrase comment.
9781 * solib-ia64-hpux.c (struct dld_info): Change type of field
9782 dld_flags from "long long" to ULONGEST.
9783
ecb956dd
PA
97842011-01-14 Pedro Alves <pedro@codesourcery.com>
9785
9786 * target.h (deprecated_child_ops): Delete declaration.
9787 * target.c (deprecated_child_ops): Delete definition.
9788
76adfcae
PA
97892011-01-14 Pedro Alves <pedro@codesourcery.com>
9790
9791 * Makefile.in (hpux-thread.o): Delete rule.
9792 * configure.ac: Don't check for HPUX DCE threads support.
9793 * configure, config.in: Regenerate.
9794 * hppa-hpux-nat.c (child_suppress_run): Delete.
9795 (hppa_hpux_child_can_run): Delete.
9796 (_initialize_hppa_hpux_nat): Don't override to_can_run.
9797 * hpux-thread.c: Delete.
9798
042e866e
JB
97992011-01-13 Joel Brobecker <brobecker@adacore.com>
9800
9801 * hpux-thread.c (hpux_pid_to_str): Delete.
9802
4ffa5a33
JB
98032011-01-13 Joel Brobecker <brobecker@adacore.com>
9804
9805 * ada-valprint.c (ada_emit_char): Remove strange code.
9806 Check that c is <= UCHAR_MAX before passing it to isascii.
9807 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9808
de8fa76c
JB
98092011-01-13 Joel Brobecker <brobecker@adacore.com>
9810
9811 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9812 to the case where instream is stdin.
9813
c4de7027
JB
98142011-01-13 Joel Brobecker <brobecker@adacore.com>
9815
9816 * ia64-tdep.h (struct regcache): Forward declare.
9817 (struct ia64_infcall_ops): New struct type.
9818 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9819 and "infcall_ops".
9820 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9821 Renames ia64_find_global_pointer.
9822 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9823 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9824 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9825 methods.
9826 (ia64_infcall_ops): New static global constant.
9827 (ia64_gdbarch_init): Set tdep->infcall_ops.
9828 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9829 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9830 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9831 (ia64_hpux_dummy_code): New static global constant.
9832 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9833 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9834 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9835 New function.
9836 (ia64_hpux_infcall_ops): New static global constant.
9837 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9838 for inferior function calls to work properly on ia64-hpux.
9839
77ca787b
JB
98402011-01-13 Joel Brobecker <brobecker@adacore.com>
9841
9842 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9843 * ia64-tdep.h (struct frame_info): forward declaration.
9844 (struct gdbarch_tdep): Add field size_of_register_frame.
9845 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9846 to determine the size of the register frame.
9847 (ia64_size_of_register_frame): New function.
9848 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9849 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9850 (IA64_HPUX_UREG_REASON): New macro.
9851 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9852 New functions.
9853 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9854 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9855 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9856 objects.
9857
92c9a463
JB
98582011-01-13 Joel Brobecker <brobecker@adacore.com>
9859
9860 Add support for ia64-hpux.
9861 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9862 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9863
9864 * configure.host: Add handling for ia64-hpux hosts. Add associated
9865 floatformats.
9866 * configure.tgt: Add handling for ia64-hpux targets.
9867 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9868 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9869 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9870
f688d93f
JB
98712011-01-13 Joel Brobecker <brobecker@adacore.com>
9872
9873 [ttrace] Compute thread list immediately after attach.
9874 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9875 New subprogram.
9876 (inf_ttrace_attach): Use it.
9877
1b89e62f
JB
98782011-01-13 Joel Brobecker <brobecker@adacore.com>
9879
9880 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9881 if we could not determine the frame's function address. Instead,
9882 use the frame's PC, and then continue.
9883
3e5e6e2a
JB
98842011-01-13 Joel Brobecker <brobecker@adacore.com>
9885
9886 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9887 not already defined.
9888
825d6d8a
JB
98892011-01-13 Joel Brobecker <brobecker@adacore.com>
9890
9891 * ia64-tdep.c (ia64_struct_type_p): New function.
9892 (ia64_extract_return_value): Handle integral values that are
9893 less than 8 bytes long.
9894 (ia64_push_dummy_call): Likewise.
9895
7458e667
JB
98962011-01-13 Joel Brobecker <brobecker@adacore.com>
9897
9898 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9899 floatformat_ia64_ext.
9900 (floatformat_ia64_ext_big): New static const.
9901 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9902
1b05df00
TT
99032011-01-12 Tom Tromey <tromey@redhat.com>
9904
9905 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9906 messages.
9907 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9908 (mi_cmd_thread_list_ids): Likewise.
9909 (mi_cmd_data_list_changed_registers): Likewise.
9910 (mi_cmd_data_list_register_values): Likewise.
9911 (mi_cmd_data_write_register_values): Likewise.
9912 (mi_cmd_data_evaluate_expression): Likewise.
9913 (mi_cmd_data_read_memory): Likewise.
9914 (mi_cmd_data_read_memory_bytes): Likewise.
9915 (mi_cmd_data_write_memory): Likewise.
9916 (mi_cmd_enable_timings): Likewise.
9917 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9918 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9919 (mi_cmd_var_delete): Likewise.
9920 (mi_cmd_var_set_format): Likewise.
9921 (mi_cmd_var_show_format): Likewise.
9922 (mi_cmd_var_info_num_children): Likewise.
9923 (mi_cmd_var_list_children): Likewise.
9924 (mi_cmd_var_info_type): Likewise.
9925 (mi_cmd_var_info_expression): Likewise.
9926 (mi_cmd_var_show_attributes): Likewise.
9927 (mi_cmd_var_assign): Likewise.
9928 (mi_cmd_var_update): Likewise.
9929 (mi_cmd_enable_pretty_printing): Likewise.
9930 (mi_cmd_var_set_update_range): Likewise.
9931 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9932 messages.
9933 (mi_cmd_target_file_put): Likewise.
9934 (mi_cmd_target_file_delete): Likewise.
9935 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9936 messages.
9937 (mi_cmd_stack_info_depth): Likewise.
9938 (mi_cmd_stack_list_locals): Likewise.
9939 (mi_cmd_stack_list_args): Likewise.
9940 (mi_cmd_stack_select_frame): Likewise.
9941 (mi_cmd_stack_select_frame): Likewise.
9942 (mi_cmd_stack_info_frame): Likewise.
9943 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9944 messages.
9945 (mi_cmd_file_list_exec_source_files): Likewise.
9946 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9947 (mi_cmd_env_cd): Likewise.
9948 (mi_cmd_env_path): Likewise.
9949 (mi_cmd_env_dir): Likewise.
9950 (mi_cmd_inferior_tty_show): Likewise.
9951 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9952 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9953 (mi_cmd_break_watch): Likewise.
9954
ad422571
TJB
99552011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9956
9957 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9958 (ppc_linux_insert_hw_breakpoint): Likewise.
9959 (ppc_linux_remove_hw_breakpoint): Likewise.
9960 (ppc_linux_insert_watchpoint): Likewise.
9961
c2ff108b
JK
99622011-01-12 Andrew Burgess <aburgess@broadcom.com>
9963 Jan Kratochvil <jan.kratochvil@redhat.com>
9964
9965 PR fortran/11104 and DWARF unbound arrays detection.
9966 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9967 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9968 unspecified upper bound.
9969 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9970 variables array_size_array, tmp_type and offset_item. New variable
9971 array. Remove call to f77_get_upperbound. New variables array_type
9972 and index. Call value_subscripted_rvalue for each dimenasion. Remove
9973 the final call to deprecated_set_value_type.
9974
41e8491f
JK
99752011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 Make value allocations more lazy.
9978 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9979 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 9980 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
9981 instead of allocate_value and set_value_lazy.
9982 * findvar.c (value_of_register_lazy): Likewise.
9983 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 9984 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
9985 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9986 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
9987 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
9988 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
9989 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
9990 the end, remove set_value_lazy there.
9991 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9992 instead of allocate_value and set_value_lazy when possible.
9993 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9994 * value.c (allocate_computed_value): Use allocate_value_lazy instead
9995 of allocate_value and set_value_lazy.
9996 (value_from_contents_and_address): Use allocate_value_lazy instead of
9997 allocate_value and set_value_lazy when possible.
9998
b716877b
AB
99992011-01-12 Andrew Burgess <aburgess@broadcom.com>
10000
10001 * disasm.c (dump_insns): Support dumping opcodes for MI.
10002 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10003 dumping of instruction opcodes.
10004
d5ae309f
JB
100052011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10006
10007 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10008 appropiately.
10009
98871305
TT
100102011-01-11 Tom Tromey <tromey@redhat.com>
10011
10012 * thread.c (do_captured_thread_select): Emit newline before
10013 printing frame.
10014
c378eb4e
MS
100152011-01-11 Michael Snyder <msnyder@vmware.com>
10016
10017 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10018 * score-tdep.c: Ditto.
10019 * score-tdep.h: Ditto.
10020 * ser-base.c: Ditto.
10021 * ser-go32.c: Ditto.
10022 * serial.c: Ditto.
10023 * serial.h: Ditto.
10024 * ser-mingw.c: Ditto.
10025 * ser-pipe.c: Ditto.
10026 * ser-tcp.c: Ditto.
10027 * ser-unix.c: Ditto.
10028 * sh64-tdep.c: Ditto.
10029 * shnbsd-nat.c: Ditto.
10030 * sh-tdep.c: Ditto.
10031 * sh-tdep.h: Ditto.
10032 * solib.c: Ditto.
10033 * solib-darwin.c: Ditto.
10034 * solib-frv.c: Ditto.
10035 * solib.h: Ditto.
10036 * solib-irix.c: Ditto.
10037 * solib-osf.c: Ditto.
10038 * solib-pa64.c: Ditto.
10039 * solib-som.c: Ditto.
10040 * solib-spu.c: Ditto.
10041 * solib-sunos.c: Ditto.
10042 * solib-svr4.c: Ditto.
10043 * solist.h: Ditto.
10044 * sol-thread.c: Ditto.
10045 * somread.c: Ditto.
10046 * source.c: Ditto.
10047 * source.h: Ditto.
10048 * sparc64-linux-tdep.c: Ditto.
10049 * sparc64-tdep.c: Ditto.
10050 * sparc-linux-nat.c: Ditto.
10051 * sparc-linux-tdep.c: Ditto.
10052 * sparc-sol2-nat.c: Ditto.
10053 * sparc-sol2-tdep.c: Ditto.
10054 * sparc-tdep.c: Ditto.
10055 * sparc-tdep.h: Ditto.
10056 * spu-tdep.c: Ditto.
10057 * stabsread.c: Ditto.
10058 * stabsread.h: Ditto.
10059 * stack.c: Ditto.
10060 * symfile.c: Ditto.
10061 * symfile.h: Ditto.
10062 * symmisc.c: Ditto.
10063 * symtab.c: Ditto.
10064 * symtab.h: Ditto.
10065 * target.c: Ditto.
10066 * target-descriptions.c: Ditto.
10067 * target-descriptions.h: Ditto.
10068 * target.h: Ditto.
10069 * target-memory.c: Ditto.
10070 * terminal.h: Ditto.
10071 * thread.c: Ditto.
10072 * top.c: Ditto.
10073 * tracepoint.c: Ditto.
10074 * tracepoint.h: Ditto.
10075 * trad-frame.h: Ditto.
10076 * typeprint.c: Ditto.
10077
581e13c1
MS
100782011-01-11 Michael Snyder <msnyder@vmware.com>
10079
10080 * ui-file.c: Comment cleanup, mostly periods and spaces.
10081 * ui-file.h: Ditto.
10082 * ui-out.c: Ditto.
10083 * ui-out.h: Ditto.
10084 * utils.c: Ditto.
10085 * v850-tdep.c: Ditto.
10086 * valarith.c: Ditto.
10087 * valops.c: Ditto.
10088 * valprint.c: Ditto.
10089 * valprint.h: Ditto.
10090 * value.c: Ditto.
10091 * value.h: Ditto.
10092 * varobj.c: Ditto.
10093 * varobj.h: Ditto.
10094 * vax-tdep.c: Ditto.
10095 * vec.c: Ditto.
10096 * vec.h: Ditto.
10097 * version.h: Ditto.
10098 * windows-nat.c: Ditto.
10099 * windows-tdep.c: Ditto.
10100 * xcoffread.c: Ditto.
10101 * xcoffsolib.c: Ditto.
10102 * xml-support.c: Ditto.
10103 * xstormy16-tdep.c: Ditto.
10104 * xtensa-tdep.c: Ditto.
10105 * xtensa-tdep.h: Ditto.
10106
90e4670f
TJB
101072011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10108
10109 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10110 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10111
e09342b5
TJB
101122011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10113 Thiago Jung Bauermann <bauerman@br.ibm.com>
10114
10115 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10116 * breakpoint.h
e09342b5
TJB
10117 (struct breakpoint_ops) <resources_needed>: New method.
10118 Initialize to NULL in all existing breakpoint_ops instances.
10119 (struct breakpoint) <exact>: New field.
10120 (target_exact_watchpoints): Declare external global.
10121 * breakpoint.c (target_exact_watchpoints): New global flag.
10122 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10123 b->enable_state to bp_enabled before calling
10124 hw_watchpoint_used_count.
10125 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10126 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10127 if available.
10128 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10129 if the watchpoint is exact.
10130 (resources_needed_watchpoint): New function.
10131 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10132 (watch_command_1): Set b->exact if the user asked for an exact
10133 watchpoint and one can be set.
10134 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10135 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10136 the user asks for an exact watchpoint and one can be set. Return
10137 number of needed debug registers to watch the expression.
10138 * gdbtypes.c (is_scalar_type): New function, based on
10139 valprint.c:scalar_type_p.
10140 (is_scalar_type_recursive): New function.
10141 * gdbtypes.h (is_scalar_type_recursive): Declare.
10142 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10143 handle regions when ranged watchpoints are available.
10144 (create_watchpoint_request): New function.
10145 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10146 create_watchpoint_request.
10147 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10148 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10149 `set powerpc' and `show powerpc' commands.
10150 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10151 Mention documentation comment in the target macro.
10152 (target_region_ok_for_hw_watchpoint): Document return value.
10153
9fa40276
TJB
101542011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10155
10156 * breakpoint.c (update_watchpoint): Decide on using a software or
10157 hardware watchpoint after the bp_locations are created.
10158
77b06cd7
TJB
101592010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10160
10161 Convert hardware watchpoints to use breakpoint_ops.
10162 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10163 <insert_location>: ... this. Return int instead of void.
10164 Accept pointer to struct bp_location instead of pointer to
10165 struct breakpoint. Adapt all implementations.
f2eb0bc8 10166 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10167 <remove_location>: ... this. Accept pointer to struct bp_location
10168 instead of pointer to struct breakpoint. Adapt all implementations.
10169 * breakpoint.c (insert_catchpoint): Delete function.
10170 (insert_bp_location): Call the watchpoint or catchpoint's
10171 breakpoint_ops.insert method.
10172 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10173 breakpoint_ops.remove method.
10174 (insert_watchpoint, remove_watchpoint): New functions.
10175 (watchpoint_breakpoint_ops): New structure.
10176 (watch_command_1): Initialize the OPS field.
10177 * inf-child.c (inf_child_insert_fork_catchpoint)
10178 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10179 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10180 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10181 Delete functions.
10182 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10183 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10184 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10185 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10186 * target.c (update_current_target): Change default implementation of
10187 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10188 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10189 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10190 to_set_syscall_catchpoint to return_one.
10191 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10192 (debug_to_insert_exec_catchpoint): Report return value.
10193 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10194 (to_insert_exec_catchpoint): Change declaration to return int instead
10195 of void.
10196
9b20d036
MS
101972011-01-11 Michael Snyder <msnyder@vmware.com>
10198
10199 * arm-tdep.c: Internationalization.
10200 * c-lang.c: Ditto.
10201 * charset.c: Ditto.
10202 * fork-child.c: Ditto.
10203 * nto-procfs.c: Ditto.
10204 * ppc-sysv-tdep.c: Ditto.
10205 * procfs.c: Ditto.
10206 * remote-mips.c: Ditto.
10207 * remote.c: Ditto.
10208 * rs6000-nat.c: Ditto.
10209 * rs6000-tdep.c: Ditto.
10210 * target.c: Ditto.
10211 * valops.c: Ditto.
10212 * value.c: Ditto.
10213 * xml-support.c: Ditto.
10214 * mi/mi-cmd-break.c: Ditto.
10215 * mi/mi-cmd-var.c: Ditto.
10216 * mi/mi-interp.c: Ditto.
10217 * mi/mi-main.c: Ditto.
10218
dae477fe
AB
102192011-01-11 Andrew Burgess <aburgess@broadcom.com>
10220
10221 * remote-sim.c (gdbsim_store_register): Update API to
10222 sim_store_register to check more error conditions.
10223
0df8b418
MS
102242011-01-10 Michael Snyder <msnyder@vmware.com>
10225
10226 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10227 * nto-tdep.c: Ditto.
10228 * nto-tdep.h: Ditto.
10229 * objc-exp.y: Ditto.
10230 * objc-lang.c: Ditto.
10231 * objfiles.c: Ditto.
10232 * objfiles.h: Ditto.
10233 * observer.c: Ditto.
10234 * opencl-lang.c: Ditto.
10235 * osabi.c: Ditto.
10236 * parse.c: Ditto.
10237 * parser-defs.h: Ditto.
10238 * p-exp.y: Ditto.
10239 * p-lang.c: Ditto.
10240 * posix-hdep.c: Ditto.
10241 * ppcbug-rom.c: Ditto.
10242 * ppc-linux-nat.c: Ditto.
10243 * ppc-linux-tdep.c: Ditto.
10244 * ppc-linux-tdep.h: Ditto.
10245 * ppcnbsd-tdep.c: Ditto.
10246 * ppcobsd-tdep.c: Ditto.
10247 * ppcobsd-tdep.h: Ditto.
10248 * ppc-sysv-tdep.c: Ditto.
10249 * ppc-tdep.h: Ditto.
10250 * printcmd.c: Ditto.
10251 * proc-abi.c: Ditto.
10252 * proc-flags.c: Ditto.
10253 * procfs.c: Ditto.
10254 * proc-utils.h: Ditto.
10255 * progspace.h: Ditto.
10256 * prologue-value.c: Ditto.
10257 * prologue-value.h: Ditto.
10258 * psympriv.h: Ditto.
10259 * psymtab.c: Ditto.
10260 * p-typeprint.c: Ditto.
10261 * p-valprint.c: Ditto.
10262 * ravenscar-sparc-thread.c: Ditto.
10263 * ravenscar-thread.c: Ditto.
10264 * ravenscar-thread.h: Ditto.
10265 * record.c: Ditto.
10266 * regcache.c: Ditto.
10267 * regcache.h: Ditto.
10268 * remote.c: Ditto.
10269 * remote-fileio.c: Ditto.
10270 * remote-fileio.h: Ditto.
10271 * remote.h: Ditto.
10272 * remote-m32r-sdi.c: Ditto.
10273 * remote-mips.c: Ditto.
10274 * remote-sim.c: Ditto.
10275 * rs6000-aix-tdep.c: Ditto.
10276 * rs6000-nat.c: Ditto.
10277 * rs6000-tdep.c: Ditto.
10278
0d7a18f7
MS
102792011-01-10 Michael Snyder <msnyder@vmware.com>
10280
10281 * charset.c (validate): Internationalization.
10282 * coffread.c (read_one_sym): Ditto.
10283 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10284 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10285 * inflow.c (new_tty): Ditto.
10286 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10287 * m32c-tdep.c (m32c_return_value): Ditto.
10288 * mep-tdep.c (mep_store_return_value): Ditto.
10289 * score-tdep.c (score7_fetch_insn): Ditto.
10290 * ser-mingw.c (pipe_windows_open): Ditto.
10291 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10292 * spu-tdep.c (spu_register_type): Ditto.
10293 * tracepoint.c (trace_find_command): Ditto.
10294 * valarith.c (value_pos): Ditto.
10295
9a153e0b
JB
102962011-01-10 Joel Brobecker <brobecker@adacore.com>
10297
10298 * ada-valprint.c (printstr): Minor comment reformatting.
10299
35ecd2d6
MS
103002011-01-08 Michael Snyder <msnyder@vmware.com>
10301
10302 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10303 markup.
10304
1777feb0
MS
103052011-01-08 Michael Snyder <msnyder@vmware.com>
10306
10307 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10308 * hppa-hpux-tdep.c: Ditto.
10309 * hppa-linux-nat.c: Ditto.
10310 * hppa-linux-tdep.c: Ditto.
10311 * hppanbsd-tdep.c: Ditto.
10312 * hppa-tdep.c: Ditto.
10313 * hppa-tdep.h: Ditto.
10314 * hpux-thread.c: Ditto.
10315 * i386-cygwin-tdep.c: Ditto.
10316 * i386-darwin-nat.c: Ditto.
10317 * i386gnu-nat.c: Ditto.
10318 * i386-linux-nat.c: Ditto.
10319 * i386-linux-tdep.c: Ditto.
10320 * i386-nat.c: Ditto.
10321 * i386-nat.h: Ditto.
10322 * i386nbsd-tdep.c: Ditto.
10323 * i386-sol2-nat.c: Ditto.
10324 * i386-stub.c: Ditto.
10325 * i386-tdep.c: Ditto.
10326 * i386-tdep.h: Ditto.
10327 * i387-tdep.c: Ditto.
10328 * ia64-linux-nat.c: Ditto.
10329 * ia64-linux-tdep.c: Ditto.
10330 * ia64-tdep.c: Ditto.
10331 * infcall.c: Ditto.
10332 * infcall.h: Ditto.
10333 * infcmd.c: Ditto.
10334 * inferior.c: Ditto.
10335 * inferior.h: Ditto.
10336 * infloop.c: Ditto.
10337 * inflow.c: Ditto.
10338 * infrun.c: Ditto.
10339 * interps.c: Ditto.
10340 * interps.h: Ditto.
10341 * iq2000-tdep.c: Ditto.
10342 * irix5-nat.c: Ditto.
10343 * jit.c: Ditto.
10344 * jit.h: Ditto.
10345 * jv-exp.y: Ditto.
10346 * jv-lang.c: Ditto.
10347 * jv-lang.h: Ditto.
10348 * jv-typeprint.c: Ditto.
10349 * jv-valprint.c: Ditto.
10350 * language.c: Ditto.
10351 * language.h: Ditto.
10352 * linespec.c: Ditto.
10353 * linux-fork.c: Ditto.
10354 * linux-nat.c: Ditto.
10355 * linux-thread-db.c: Ditto.
10356 * lm32-tdep.c: Ditto.
10357
025bb325
MS
103582011-01-08 Michael Snyder <msnyder@vmware.com>
10359
10360 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10361 * m2-lang.c: Ditto.
10362 * m2-typeprint.c: Ditto.
10363 * m2-valprint.c: Ditto.
10364 * m32c-tdep.c: Ditto.
10365 * m32r-linux-nat.c: Ditto.
10366 * m32r-rom.c: Ditto.
10367 * m32r-tdep.c: Ditto.
10368 * m32r-tdep.h: Ditto.
10369 * m68hc11-tdep.c: Ditto.
10370 * m58klinux-nat.c: Ditto.
10371 * m68k-tdep.c: Ditto.
10372 * m88k-tdep.c: Ditto.
10373 * m88k-tdep.h: Ditto.
10374 * machoread.c: Ditto.
10375 * macrocmd.c: Ditto.
10376 * macroexp.c: Ditto.
10377 * macrotab.c: Ditto.
10378 * main.c: Ditto.
10379 * maint.c: Ditto.
10380 * mdebugread.c: Ditto.
10381 * mdebugread.h: Ditto.
10382 * memattr.c: Ditto.
10383 * memattr.h: Ditto.
10384 * memory-map.h: Ditto.
10385 * mep-tdep.c: Ditto.
10386 * microblaze-rom.c: Ditto.
10387 * microblaze-tdep.c: Ditto.
10388 * minsyms.c: Ditto.
10389 * mips-irix-tdep.c: Ditto.
10390 * mips-linux-nat.c: Ditto.
10391 * mips-linux-tdep.c: Ditto.
10392 * mips-linux-tdep.h: Ditto.
10393 * mipsnbsd-nat.c: Ditto.
10394 * mipsnbsd-tdep.c: Ditto.
10395 * mipsread.c: Ditto.
10396 * mips-tdep.c: Ditto.
10397 * mips-tdep.h: Ditto.
10398 * mn10300-linux-tdep.c: Ditto.
10399 * mn10300-tdep.c: Ditto.
10400 * mn10300-tdep.h: Ditto.
10401 * monitor.c: Ditto.
10402 * monitor.h: Ditto.
10403 * moxie-tdep.c: Ditto.
10404 * moxie-tdep.h: Ditto.
10405 * mt-tdep.c: Ditto.
10406
1642781b
MF
104072011-01-08 Mike Frysinger <vapier@gentoo.org>
10408
10409 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10410
394b0adb
JB
104112011-01-08 Robert Millan <rmh@gnu.org>
10412
10413 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10414
b670013c
MS
104152011-01-07 Michael Snyder <msnyder@vmware.com>
10416
10417 * charset.c (_initialize_charset): Fix typo in string.
10418
a743e542
MS
104192011-01-07 Michael Snyder <msnyder@vmware.com>
10420
10421 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10422 for i18n.
f2eb0bc8 10423 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10424 Split line so that operator goes to beginning of line.
10425 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10426 assignment out of if statement.
10427
0963b4bd
MS
104282011-01-07 Michael Snyder <msnyder@vmware.com>
10429
10430 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10431 * ada-lang.h: Ditto.
10432 * ada-tasks.c: Ditto.
10433 * ada-valprint.c: Ditto.
10434 * aix-threads.c: Ditto.
10435 * alpha-linux-nat.c: Ditto.
10436 * alpha-linux-tdep.c: Ditto.
10437 * alpha-mdebug-tdep.c: Ditto.
10438 * alpha-nat.c: Ditto.
10439 * alpha-osf1-tdep.c: Ditto.
10440 * alpha-tdep.c: Ditto.
10441 * alphabsd-nat.c: Ditto.
10442 * alphabsd-tdep.c: Ditto.
10443 * amd64-darwin-tdep.c: Ditto.
10444 * amd64-linux-nat.c: Ditto.
10445 * amd64-linux-tdep.c: Ditto.
10446 * amd64-sol2-tdep.c: Ditto.
10447 * amd64-tdep.c: Ditto.
10448 * amd64-fbsd-tdep.c: Ditto.
10449 * amd64-nbsd-tdep.c: Ditto.
10450 * amd64-obsd-tdep.c: Ditto.
10451 * amd64-linux-nat.c: Ditto.
10452 * amd64-linux-tdep.c: Ditto.
10453 * arm-tdep.c: Ditto.
10454 * arm-tdep.h: Ditto.
10455 * armnbsd-nat.c: Ditto.
10456 * avr-tdep.c: Ditto.
10457 * bfin-tdep.c: Ditto.
10458 * bsd-kvm.c: Ditto.
10459 * c-typeprintc: Ditto.
10460 * c-valprint.c: Ditto.
10461 * coff-pe-read.h: Ditto.
10462 * coffreead.c: Ditto.
10463 * cris-tdep.c: Ditto.
10464 * d-lang.c: Ditto.
10465 * darwin-nat-info.c: Ditto.
10466 * darwin-nat.c: Ditto.
10467 * dbug-rom.c: Ditto.
10468 * dbxread.c: Ditto.
10469 * dcache.c: Ditto.
10470 * dcache.h: Ditto.
10471 * dec-thread.c: Ditto.
10472 * defs.h: Ditto.
10473 * demangle.c: Ditto.
10474 * dicos-tdep.c: Ditto.
10475 * dictionary.c: Ditto.
10476 * dictionary.h: Ditto.
10477 * dink32-rom.c: Ditto.
10478 * disasm.c: Ditto.
10479 * doublest.c: Ditto.
10480 * dsrec.c: Ditto.
10481 * dummy-frame.c: Ditto.
10482 * dwarf2-frame.c: Ditto.
10483 * dwarf2expr.c: Ditto.
10484 * dwarf2loc.c: Ditto.
10485 * dwarf2read.c: Ditto.
10486 * elfread.c: Ditto.
10487 * environ.c: Ditto.
10488 * eval.c: Ditto.
10489 * event-top.h: Ditto.
10490 * exceptions.c: Ditto.
10491 * exceptions.h: Ditto.
10492 * exec.c: Ditto.
10493 * expprint.c: Ditto.
10494 * expression.h: Ditto.
10495 * f-exp.y: Ditto.
10496 * f-lang.c: Ditto.
10497 * f-lang.h: Ditto.
10498 * f-typeprint.c: Ditto.
10499 * f-valprint.c: Ditto.
10500 * fbsd-nat.c: Ditto.
10501 * findvar.c: Ditto.
10502 * fork-child.c: Ditto.
10503 * frame.c: Ditto.
10504 * frame.h: Ditto.
10505 * frv-linux-tdep.c: Ditto.
10506 * frv-tdep.c: Ditto.
10507 * gcore.c: Ditto.
10508 * gdb-stabs.h: Ditto.
10509 * gdb_assert.h: Ditto.
10510 * gdb_string.h: Ditto.
10511 * gdb_thread_db.h: Ditto.
10512 * gdb_wait.h: Ditto.
10513 * gdbarch.sh: Ditto.
10514 * gdbcore.h: Ditto.
10515 * gdbthread.h: Ditto.
10516 * gdbtypes.c: Ditto.
10517 * gdbtypes.h: Ditto.
10518 * gnu-nat.c: Ditto.
10519 * gnu-nat.h: Ditto.
10520 * gnu-v2-abi.c: Ditto.
10521 * gnu-v3-abi.c: Ditto.
10522 * go32-nat.c: Ditto.
10523 * gdbarch.c: Regenerate.
10524 * gdbarch.h: Regenerate.
10525
ac74f770
MS
105262011-01-07 Michael Snyder <msnyder@vmware.com>
10527
10528 * ax-gdb.c: Adjust some long output strings.
10529 * breakpoint.c: Ditto.
10530 * charset.c: Ditto.
10531 * cp-abi.c: Ditto.
10532 * infcall.c: Ditto.
10533 * infrun.c: Ditto.
10534 * linux-nat.c: Ditto.
10535 * solib-pa64.c: Ditto.
10536 * solib-som.c: Ditto.
10537
d8e22779
TT
105382011-01-06 Tom Tromey <tromey@redhat.com>
10539
10540 PR python/12367:
10541 * NEWS: Add item.
10542 * python/python.c (GdbMethods): Add "newest_frame" method.
10543 * python/python-internal.h (gdbpy_newest_frame): Declare.
10544 * python/py-frame.c (gdbpy_newest_frame): New function.
10545
a255712f
PP
105462010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10547
10548 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10549 * jit.c (jit_debug): New variable.
10550 (show_jit_debug): New function.
10551 (struct target_buffer): Use ULONGEST.
10552 (bfd_open_from_target_memory): Likewise.
10553 (jit_register_code, jit_inferior_init): Add debug output.
10554 (_initialize_jit): Register "debug jit" command.
10555
ccfc3d6e
TT
105562011-01-06 Tom Tromey <tromey@redhat.com>
10557
10558 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10559 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10560 and ARCH_FRAME.
10561
57126e4a
TT
105622011-01-06 Tom Tromey <tromey@redhat.com>
10563
10564 * python/py-frame.c (frapy_block): Use get_frame_block.
10565
16dfc9ce
JB
105662011-01-06 Joel Brobecker <brobecker@adacore.com>
10567
10568 Do not stop on SIGPRIO signals by default
10569 * infrun.c (_initialize_infrun): Unset signal_stop and
10570 signal_print for TARGET_SIGNAL_PRIO.
10571
b1ce2347
JB
105722011-01-06 Joel Brobecker <brobecker@adacore.com>
10573
10574 * ada-tasks.c: Fix style violation in comment.
10575
8f7e195f
JB
105762011-01-06 Joel Brobecker <brobecker@adacore.com>
10577
10578 * linespec.c (decode_compound, find_method): Remove trailing \n
10579 at end of error string.
10580 * solib-irix.c (irix_current_sos): Likewise.
10581 * varobj.c (uninstall_variable): Likewise.
10582
e9bdf92c
JB
105832011-01-06 Joel Brobecker <brobecker@adacore.com>
10584
10585 * copyright.py: New script.
10586 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10587 Launch emacs without exec'ing. Call copyright.py afterwards.
10588
3e43a32a
MS
105892011-01-05 Michael Snyder <msnyder@vmware.com>
10590
10591 * addrmap.c: Shorten lines of >= 80 columns.
10592 * arch-utils.c: Ditto.
10593 * arch-utils.h: Ditto.
10594 * ax-gdb.c: Ditto.
10595 * ax-general.c: Ditto.
10596 * bcache.c: Ditto.
10597 * blockframe.c: Ditto.
10598 * breakpoint.c: Ditto.
10599 * buildsym.c: Ditto.
10600 * c-lang.c: Ditto.
10601 * c-typeprint.c: Ditto.
10602 * charset.c: Ditto.
10603 * coffread.c: Ditto.
10604 * command.h: Ditto.
10605 * corelow.c: Ditto.
10606 * cp-abi.c: Ditto.
10607 * cp-namespace.c: Ditto.
10608 * cp-support.c: Ditto.
10609 * dbug-rom.c: Ditto.
10610 * dbxread.c: Ditto.
10611 * defs.h: Ditto.
10612 * dfp.c: Ditto.
10613 * dfp.h: Ditto.
10614 * dictionary.c: Ditto.
10615 * disasm.c: Ditto.
10616 * doublest.c: Ditto.
10617 * dwarf2-frame.c: Ditto.
10618 * dwarf2expr.c: Ditto.
10619 * dwarf2loc.c: Ditto.
10620 * dwarf2read.c: Ditto.
10621 * elfread.c: Ditto.
10622 * eval.c: Ditto.
10623 * event-loop.c: Ditto.
10624 * event-loop.h: Ditto.
10625 * exceptions.h: Ditto.
10626 * exec.c: Ditto.
10627 * expprint.c: Ditto.
10628 * expression.h: Ditto.
10629 * f-lang.c: Ditto.
10630 * f-valprint.c: Ditto.
10631 * findcmd.c: Ditto.
10632 * frame-base.c: Ditto.
10633 * frame-unwind.c: Ditto.
10634 * frame-unwind.h: Ditto.
10635 * frame.c: Ditto.
10636 * frame.h: Ditto.
10637 * gcore.c: Ditto.
10638 * gdb-stabs.h: Ditto.
10639 * gdb_assert.h: Ditto.
10640 * gdb_dirent.h: Ditto.
10641 * gdb_obstack.h: Ditto.
10642 * gdbcore.h: Ditto.
10643 * gdbtypes.c: Ditto.
10644 * gdbtypes.h: Ditto.
10645 * inf-ttrace.c: Ditto.
10646 * infcall.c: Ditto.
10647 * infcmd.c: Ditto.
10648 * inflow.c: Ditto.
10649 * infrun.c: Ditto.
10650 * inline-frame.h: Ditto.
10651 * language.c: Ditto.
10652 * language.h: Ditto.
10653 * libunwind-frame.c: Ditto.
10654 * libunwind-frame.h: Ditto.
10655 * linespec.c: Ditto.
10656 * linux-nat.c: Ditto.
10657 * linux-nat.h: Ditto.
10658 * linux-thread-db.c: Ditto.
10659 * machoread.c: Ditto.
10660 * macroexp.c: Ditto.
10661 * macrotab.c: Ditto.
10662 * main.c: Ditto.
10663 * maint.c: Ditto.
10664 * mdebugread.c: Ditto.
10665 * memattr.c: Ditto.
10666 * minsyms.c: Ditto.
10667 * monitor.c: Ditto.
10668 * monitor.h: Ditto.
10669 * objfiles.c: Ditto.
10670 * objfiles.h: Ditto.
10671 * osabi.c: Ditto.
10672 * p-typeprint.c: Ditto.
10673 * p-valprint.c: Ditto.
10674 * parse.c: Ditto.
10675 * printcmd.c: Ditto.
10676 * proc-events.c: Ditto.
10677 * procfs.c: Ditto.
10678 * progspace.c: Ditto.
10679 * progspace.h: Ditto.
10680 * psympriv.h: Ditto.
10681 * psymtab.c: Ditto.
10682 * record.c: Ditto.
10683 * regcache.c: Ditto.
10684 * regcache.h: Ditto.
10685 * remote-fileio.c: Ditto.
10686 * remote.c: Ditto.
10687 * ser-mingw.c: Ditto.
10688 * ser-tcp.c: Ditto.
10689 * ser-unix.c: Ditto.
10690 * serial.c: Ditto.
10691 * serial.h: Ditto.
10692 * solib-frv.c: Ditto.
10693 * solib-irix.c: Ditto.
10694 * solib-osf.c: Ditto.
10695 * solib-pa64.c: Ditto.
10696 * solib-som.c: Ditto.
10697 * solib-sunos.c: Ditto.
10698 * solib-svr4.c: Ditto.
10699 * solib-target.c: Ditto.
10700 * solib.c: Ditto.
10701 * somread.c: Ditto.
10702 * source.c: Ditto.
10703 * stabsread.c: Ditto.
10704 * stabsread.c: Ditto.
10705 * stack.c: Ditto.
10706 * stack.h: Ditto.
10707 * symfile-mem.c: Ditto.
10708 * symfile.c: Ditto.
10709 * symfile.h: Ditto.
10710 * symmisc.c: Ditto.
10711 * symtab.c: Ditto.
10712 * symtab.h: Ditto.
10713 * target-descriptions.c: Ditto.
10714 * target-memory.c: Ditto.
10715 * target.c: Ditto.
10716 * target.h: Ditto.
10717 * terminal.h: Ditto.
10718 * thread.c: Ditto.
10719 * top.c: Ditto.
10720 * tracepoint.c: Ditto.
10721 * tracepoint.h: Ditto.
10722 * ui-file.c: Ditto.
10723 * ui-file.h: Ditto.
10724 * ui-out.h: Ditto.
10725 * user-regs.c: Ditto.
10726 * user-regs.h: Ditto.
10727 * utils.c: Ditto.
10728 * valarith.c: Ditto.
10729 * valops.c: Ditto.
10730 * valprint.c: Ditto.
10731 * valprint.h: Ditto.
10732 * value.c: Ditto.
10733 * varobj.c: Ditto.
10734 * varobj.h: Ditto.
10735 * vec.h: Ditto.
10736 * xcoffread.c: Ditto.
10737 * xcoffsolib.c: Ditto.
10738 * xcoffsolib.h: Ditto.
10739 * xml-syscall.c: Ditto.
10740 * xml-tdesc.c: Ditto.
10741
9a2b4c1b
MS
107422011-01-05 Michael Snyder <msnyder@vmware.com>
10743
10744 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10745 * cli/cli-decode.c: Ditto.
10746 * cli/cli-dump.c: Ditto.
10747 * cli/cli-logging.c: Ditto.
10748 * cli/cli-script.c: Ditto.
10749 * cli/cli-setshow.c: Ditto.
10750 * common/signals.c: Ditto.
10751 * mi/mi-cmd-break.c: Ditto.
10752 * mi/mi-cmd-disas.c: Ditto.
10753 * mi/mi-cmd-stack.c: Ditto.
10754 * mi/mi-cmd-var.c: Ditto.
10755 * mi/mi-cmds.c: Ditto.
10756 * mi/mi-common.h: Ditto.
10757 * mi/mi-console.c: Ditto.
10758 * mi/mi-interp.c: Ditto.
10759 * mi/mi-main.c: Ditto.
10760 * osf-share/cma_attr.c: Ditto.
10761 * osf-share/cma_deb_core.h: Ditto.
10762 * osf-share/cma_debug_client.h: Ditto.
10763 * osf-share/cma_handle.h: Ditto.
10764 * osf-share/cma_mutex.h: Ditto.
10765 * osf-share/cma_stack_int.h: Ditto.
10766 * osf-share/cma_tcb_defs.h: Ditto.
10767 * python/py-auto-load.c: Ditto.
10768 * python/py-breakpoint.c: Ditto.
10769 * python/py-cmd.c: Ditto.
10770 * python/py-frame.c: Ditto.
10771 * python/py-objfile.c: Ditto.
10772 * python/py-param.c: Ditto.
10773 * python/py-progspace.c: Ditto.
10774 * python/py-symbol.c: Ditto.
10775 * python/py-value.c: Ditto.
10776 * python/python-internal.h: Ditto.
10777 * python/python.c: Ditto.
10778 * tui/tui-data.c: Ditto.
10779 * tui/tui-disasm.c: Ditto.
10780 * tui/tui-hooks.c: Ditto.
10781 * tui/tui-io.c: Ditto.
10782 * tui/tui-layout.c: Ditto.
10783 * tui/tui-regs.c: Ditto.
10784 * tui/tui-source.c: Ditto.
10785 * tui/tui-stack.c: Ditto.
10786 * tui/tui-win.c: Ditto.
10787 * tui/tui-windata.c: Ditto.
10788 * tui/tui-winsource.c: Ditto.
10789
44944448
JB
107902011-01-05 Joel Brobecker <brobecker@adacore.com>
10791
10792 * configure.ac, gdb.1: Copyright year update.
10793
ebedcab5
JK
107942011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10795
10796 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10797 this_pc_in_block, morestack_msym and morestack_name. Check for
10798 "__morestack" minimal symbol there.
10799
e5cc9f32
JB
108002011-01-03 Joel Brobecker <brobecker@adacore.com>
10801
10802 * symfile.c (find_sym_fns): Add call to dont_repeat.
10803
7b6bb8da
JB
108042011-01-01 Joel Brobecker <brobecker@adacore.com>
10805
10806 Copyright year update in most files (performed by copyright.sh).
10807
71ce852c
JB
108082011-01-01 Joel Brobecker <brobecker@adacore.com>
10809
10810 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 10811
c3c1ebe8 10812For older changes see ChangeLog-2010.
c906108c
SS
10813\f
10814Local Variables:
10815mode: change-log
10816left-margin: 8
10817fill-column: 74
10818version-control: never
57da7796 10819coding: utf-8
c906108c 10820End:
This page took 2.061905 seconds and 4 git commands to generate.