2011-05-26 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9da8c2a0
PA
12011-05-26 Pedro Alves <pedro@codesourcery.com>
2
3 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4 function's entry point instead of a manually managed momentary
5 breakpoint, and only ever issue one proceed call.
6 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
7 doing a reverse-finish, switch to stepi mode, to do another step.
8 (insert_step_resume_breakpoint_at_sal): Make public.
9 (normal_stop): No need to save function value return registers if
10 going reverse.
11 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
12
2c03e5be
PA
132011-05-26 Pedro Alves <pedro@codesourcery.com>
14
15 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
16 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
17 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
18 at the end.
19 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
20 step-resume breakpoints.
21 (print_it_typical): Handle bp_hp_step_resume.
22 (bpstat_what): Ditto.
23 (bptype_string): Ditto.
24 (print_one_breakpoint_location): Ditto.
25 (allocate_bp_location): Ditto.
26 (mention): Ditto.
27 (breakpoint_re_set_one): Ditto.
28 * infrun.c (handle_inferior_event): Adjust. Split
29 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
30 BPSTAT_WHAT_HP_STEP_RESUME.
31 (insert_step_resume_breakpoint_at_sal): Rename to ...
32 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
33 parameter. Handle it.
34 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
35 insert_step_resume_breakpoint_at_sal_1.
36 (insert_step_resume_breakpoint_at_frame): Rename to ...
37 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
38 set a high-priority step-resume breakpoint.
39 (insert_step_resume_breakpoint_at_frame): Adjust comment.
40 (insert_step_resume_breakpoint_at_caller): Ditto.
41
51be5b68
PA
422011-05-26 Pedro Alves <pedro@codesourcery.com>
43
44 * breakpoint.c (iterate_over_related_breakpoints): New.
45 (do_map_delete_breakpoint): New.
46 (delete_command): Pass do_map_delete_breakpoint to
47 map_breakpoint_numbers.
48 (do_disable_breakpoint): New.
49 (do_map_disable_breakpoint): Iterate over the breakpoint's related
50 breakpoints.
51 (do_enable_breakpoint): Rename to ...
52 (enable_breakpoint_disp): ... this.
53 (enable_breakpoint): Adjust.
54 (do_enable_breakpoint): New.
55 (enable_once_breakpoint): Delete.
56 (do_map_enable_breakpoint): New.
57 (do_map_enable_once_breakpoint): New.
58 (enable_once_command, enable_delete_command)
59 (delete_trace_command): Iterate over the breakpoint's related
60 breakpoints.
61
4a1be8d2
PA
622011-05-26 Pedro Alves <pedro@codesourcery.com>
63
64 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
65 for ALPHA_ZERO_REGNUM.
66 (alpha_supply_int_regs): Explicitly supply zero as the value for
67 ALPHA_ZERO_REGNUM in the register cache.
68 * alpha-nat.c (fetch_osf_core_registers): Ditto.
69
59d70315
YQ
702011-05-26 Yao Qi <yao@codesourcery.com>
71
72 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
73
251d32d9
TG
742011-05-26 Tristan Gingold <gingold@adacore.com>
75
76 * symfile.h (struct dwarf2_section_names): New type.
77 (struct dwarf2_debug_sections): New type.
78 (dwarf2_has_info): Add parameter.
79 * dwarf2read.c (dwarf2_elf_names): New variable.
80 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
81 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
82 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
83 (dwarf2_has_info): Add names parameter. Pass names
84 to dwarf2_locate_sections.
85 (section_is_p): Rewrite using the names parameter.
86 (dwarf2_locate_sections): Use section names from the names parameter.
87 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
88 * elfread.c (read_psyms): Ditto.
89 * machoread.c (macho_symfile_read): Ditto.
90
652c71b4
AS
912011-05-25 Andreas Schwab <schwab@redhat.com>
92
93 PR gdb/8677
94 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
95
f17170e5
KS
962011-05-24 Keith Seitz <keiths@redhat.com>
97
98 PR breakpoint/12803
99 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
100 (decode_compound): Unconditionally call keep_name_info.
101
cdac0397
PA
1022011-05-24 Pedro Alves <pedro@codesourcery.com>
103
104 * breakpoint.c (watchpoint_check): If the watchpoint went out of
105 scope, clear its command list.
106 (map_breakpoint_numbers): Don't walk the related breakpoints list
107 of each breakpoint.
108
91d4fe3f
TT
1092011-05-24 Tom Tromey <tromey@redhat.com>
110
111 * MAINTAINERS: Move Jim Blandy to past maintainers.
112
3017a003
TG
1132011-05-24 Tristan Gingold <gingold@adacore.com>
114
115 * symfile.h (enum dwarf2_section_enum): New type.
116 (dwarf2_get_section_info): New prototype.
117 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
118 section_name by sect. Use a switch to select the info.
119 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
120 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
121
c91c8c16
PA
1222011-05-24 Pedro Alves <pedro@codesourcery.com>
123
124 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
125 shared library event breakpoint if there's no execution.
126
77bc418a
TJB
1272011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
128
129 * breakpont.c (remove_hw_watchpoints): Remove unused function.
130 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
131
c50491a7
TT
1322011-05-23 Tom Tromey <tromey@redhat.com>
133
134 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
135 NULL.
136
6d64e6d4
DE
1372011-05-23 Doug Evans <dje@google.com>
138
139 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
140 entry for RuntimeError to doc string.
141
2067c8d4
JG
1422011-05-23 Jerome Guitton <guitton@adacore.com>
143
144 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
145 sequence for probing loops.
146
b136cd05
PA
1472011-05-23 Pedro Alves <pedro@codesourcery.com>
148
149 * infrun.c (user_visible_resume_ptid): Fix typos in describing
150 comment.
151
22e74ef9
MK
1522011-05-21 Mark Kettenis <kettenis@gnu.org>
153
154 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
155 zero as the value for %g0 in the register cache.
156 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
157 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
158
842951eb
PA
1592011-05-20 Pedro Alves <pedro@codesourcery.com>
160
161 * infrun.c (proceed): Set previous_inferior_ptid here.
162 (init_wait_for_inferior): Initialize previous_inferior_ptid from
163 inferior_ptid, not null_ptid.
164 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
165 (fetch_inferior_event): Nor here.
166
46cf51e6
PA
1672011-05-20 Pedro Alves <pedro@codesourcery.com>
168
169 * inf-loop.c (inferior_event_handler): Only output a message if
170 verbose.
171
29ef4c46
LM
1722011-05-20 Luis Machado <lgustavo@codesourcery.com>
173
174 * MAINTAINERS: Update my e-mail address.
175
f148b27e
PA
1762011-05-20 Pedro Alves <pedro@codesourcery.com>
177
178 * infrun.c (proceed): Switch the inferior event loop to
179 INF_EXEC_COMPLETE if the target refused to resume from a
180 vfork/fork.
181
09cee04b
PA
1822011-05-20 Pedro Alves <pedro@codesourcery.com>
183
184 * infcmd.c: Include "inf-loop.h".
185 (step_once): When stepping into an inline subroutine, pretend the
186 target has run. If the target can async, switch the inferior
187 event loop to INF_EXEC_COMPLETE.
188 * inferior.h (user_visible_resume_ptid): Declare.
189 * infrun.c (user_visible_resume_ptid): New function, factored out
190 from `resume'.
191 (resume): Use it.
192 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
193 that the current thread is running. Merge async and sync
194 branches.
195
751b8ce1
PA
1962011-05-20 Pedro Alves <pedro@codesourcery.com>
197
198 * infcmd.c (step_1): Simplify synchronous case.
199
e93a69ed
PA
2002011-05-20 Pedro Alves <pedro@codesourcery.com>
201
202 * tracepoint.c: Include exceptions.h.
203 (TFILE_PID): Move higher in file.
204 (tfile_open): Delay pushing the tfile target until we're assured
205 the tfile header is present in the file. Wrap reading the initial
206 newline-terminated lines in TRY_CATCH. Pop the target if the
207 initial setup failed. Add the tfile's thread immediately
208 aftwards, before any non-essential setup. Don't skip
209 post_create_inferior if there are no traceframes present in the
210 file.
211 (tfile_close): Remove redundant check for null before xfree call.
212 (tfile_thread_alive): New function.
213 (init_tfile_ops): Register it as to_thread_alive callback.
214
6823e2b1
PA
2152011-05-20 Pedro Alves <pedro@codesourcery.com>
216
217 * tracepoint.c (tfile_open): Delete #if 0'd code.
218
b3c8eb43
JK
2192011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
220
221 Fix -readnow for -gdwarf-4 unused type units.
222 * dwarf2read.c (struct signatured_type): Remove the field offset.
223 (create_signatured_type_table_from_index): Remove its initialization.
224 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
225 instead. Add a complaint call.
226 (process_psymtab_comp_unit): Change assignment to gdb_assert.
227 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
228 (lookup_signatured_type_at_offset, read_signatured_type)
229 (write_one_signatured_type): Update the field for per_cu.
230
310afc76
TT
2312011-05-19 Tom Tromey <tromey@redhat.com>
232
233 * python/py-inferior.c (python_inferior_exit): Use
234 target_gdbarch.
235 (python_on_resume): Likewise.
236
cf6c5ffb
TT
2372011-05-19 Matt Rice <ratmice@gmail.com>
238
239 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
240
fb80a3c5
HZ
2412011-05-19 Hui Zhu <teawater@gmail.com>
242
243 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
244
3672b1be
HZ
2452011-05-19 Hui Zhu <teawater@gmail.com>
246
247 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
248
ff355380
TT
2492011-05-18 Tom Tromey <tromey@redhat.com>
250
251 * dwarf2read.c (dwarf2_add_field): Constify.
252 * value.c (value_static_field): Constify.
253 * gdbtypes.h (struct main_type) <field.field_location.physname>:
254 Now const.
255 * ax-gdb.c (gen_static_field): Constify
256
ed731959
JK
2572011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
258
259 * linux-nat.c (kill_callback): Use SIGKILL first.
260
967cff16
JB
2612011-05-18 Joel Brobecker <brobecker@adacore.com>
262
263 * ada-lang.c (print_it_exception): Avoid use of sprintf.
264
1d06ead6
TT
2652011-05-18 Tom Tromey <tromey@redhat.com>
266
267 * value.c (value_fn_field): Constify.
268 * symtab.c (gdb_mangle_name): Constify.
269 * stabsread.c (update_method_name_from_physname): Make 'physname'
270 argument const.
271 * p-typeprint.c (pascal_type_print_method_args): Make arguments
272 const. Use explicit fputc_filtered loop.
273 (pascal_type_print_base): Constify.
274 * p-lang.h (pascal_type_print_method_args): Update.
275 * linespec.c (add_matching_methods): Constify.
276 (add_constructors): Likewise.
277 * jv-typeprint.c (java_type_print_base): Constify.
278 * gdbtypes.h (struct cplus_struct_type)
279 <fn_fieldlist.fn_field.physname>: Now const.
280 * dwarf2read.c (compute_delayed_physnames): Constify.
281 (dwarf2_add_member_fn): Likewise.
282 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
283
0d9a9a5f
PA
2842011-05-18 Pedro Alves <pedro@codesourcery.com>
285
286 * infrun.c (resume): Mention which is the current thread, and its
287 current PC in debug output.
288 (prepare_to_proceed): Mention the thread switching in debug
289 output.
290
05386e9e
TT
2912011-05-18 Tom Tromey <tromey@redhat.com>
292
293 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
294 path check. Use xmalloc and cleanups.
295 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
296
ee86786c
TT
2972011-05-17 Tom Tromey <tromey@redhat.com>
298
299 * cp-valprint.c (cp_print_value_fields): Catch errors from
300 value_static_field.
301
9ff3b74f
TT
3022011-05-17 Tom Tromey <tromey@redhat.com>
303
304 * dwarf2read.c (dwarf2_get_die_type): Call
305 get_die_type_at_offset.
306 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
307 get_base_type function.
308
cd3da28e
PA
3092011-05-17 Tomas Martinec <fyzmat@gmail.com>
310
311 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
312 trap_expected.
313
fd20d931
DE
3142011-05-16 Doug Evans <dje@google.com>
315
316 * python/py-auto-load.c (source_section_scripts): Mention objfile
317 name in warning.
318
75fc9810
DE
3192011-05-15 Doug Evans <dje@google.com>
320
290351b8
DE
321 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
322 (try_thread_db_load_from_pdir): Call it. If unable to find
323 libthread_db in directory of libpthread, see if we're looking at
324 the separate-debug-info copy.
325
75fc9810
DE
326 * python/py-autoload.c (print_script): Print "Missing" instead of
327 "No" for missing scripts.
328 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
329
9f7bc587
DE
3302011-05-13 Doug Evans <dje@google.com>
331
332 * ui-file.c (stdio_file_write_async_safe): Add comment.
333
093cee7d
HZ
3342011-05-14 Hui Zhu <teawater@gmail.com>
335
336 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
337
dbaefcf7
DE
3382011-05-13 Doug Evans <dje@google.com>
339
98a5dd13
DE
340 Support $pdir and $sdir in libthread-db-search-path.
341 * NEWS: Mention $sdir,$pdir.
342 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
343 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
344 (try_thread_db_load_from_sdir): New function.
345 (try_thread_db_load_from_dir): New function.
346 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
347 system directories if search of libthread-db-search-path fails,
348 that is now done via $sdir.
349 (has_libpthread): New function.
350 (thread_db_load): Remove search for libthread_db in directory of
351 libpthread, that is now done via $pdir.
352
dbaefcf7
DE
353 * NEWS: Mention "info auto-load-scripts".
354 * python/py-auto-load.c (struct auto_load_pspace_info): New member
355 script_not_found_warning_printed.
356 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
357 all callers updated. Initialize script_not_found_warning_printed.
358 (get_auto_load_pspace_data_for_loading): New function.
359 (maybe_add_script): New function.
360 (source_section_scripts): Simplify. Only print one warning regardless
361 of the number of auto-load scripts not found.
362 (clear_section_scripts): Clear script_not_found_warning_printed.
363 (auto_load_objfile_script): Record script in hash table.
364 (count_matching_scripts): New function.
365 (maybe_print_script): Renamed from maybe_print_section_script, all
366 callers updated. Rewrite to use ui_out_*.
367 (info_auto_load_scripts): Renamed from
368 maintenance_print_section_scripts, all callers updated.
369 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
370 renamed as "info auto-load-scripts".
371
9930639c
TT
3722011-05-13 Tom Tromey <tromey@redhat.com>
373
374 * dwarf2expr.c (read_uleb128): Cast intermediate result.
375 (read_sleb128): Likewise.
376
06826322
TT
3772011-05-13 Tom Tromey <tromey@redhat.com>
378
379 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
380 offset display.
381
01124a23
DE
3822011-05-13 Doug Evans <dje@google.com>
383
384 * linux-nat.c (debug_linux_nat_async): Delete.
385 Replace all references to use debug_linux_nat instead.
386 (show_debug_linux_nat_async): Delete.
387 (sigchld_handler): Call ui_file_write_async_safe instead of
388 fprintf_unfiltered.
389 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
390 * ui-file.c (struct ui_file): New member to_write_async_safe.
391 (null_file_write_async_safe): New function.
392 (ui_file_write_async_safe): New function.
393 (set_ui_file_write_async_safe): New function.
394 (ui_file_new): Initialize to_write_async_safe.
395 (stdio_file_write_async_safe): New function.
396 (struct stdio_file): New member fd.
397 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
398 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
399 fileno.
01124a23
DE
400 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
401 (set_ui_file_write_async_safe): Declare.
402 (ui_file_write_async_safe): Declare.
403
72fc29ff
TT
4042011-05-13 Tom Tromey <tromey@redhat.com>
405
406 * utils.c (do_value_free): New function.
407 (make_cleanup_value_free): Likewise.
408 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
409 freeing correctly.
410 (dwarf2_loc_desc_needs_frame): Call
411 make_cleanup_value_free_to_mark.
412 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
413 * dwarf2expr.c (free_dwarf_expr_context): Don't call
414 value_free_to_mark.
415 (new_dwarf_expr_context): Don't call value_mark.
416 * dwarf2-frame.c (execute_stack_op): Call
417 make_cleanup_value_free_to_mark.
418 * defs.h (make_cleanup_value_free): Declare.
419
028d0ed5
TJB
4202011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
421
422 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
423 prepare_execute_command.
424 * top.c (prepare_execute_command): Return cleanup.
425 (execute_command): Use cleanup from prepare_execute_command.
426 * top.h (prepare_execute_command): Change prototype to return
427 cleanup.
428 * defs.h (struct value): Add opaque declaration.
429 (make_cleanup_value_free_to_mark): Add prototype.
430 * utils.c (do_value_free_to_mark): New function.
431 (make_cleanup_value_free_to_mark): Likewise.
432
b087e0ed
TT
4332011-05-12 Tom Tromey <tromey@redhat.com>
434
435 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
436 cast left-hand-side to unsigned.
437
8a9b8146
TT
4382011-05-12 Tom Tromey <tromey@redhat.com>
439
440 PR gdb/12617:
441 * value.h (value_from_contents): Declare.
442 * value.c (value_from_contents): New function.
443 * dwarf2read.c (dwarf_stack_op_name): Add new values.
444 (dwarf2_get_die_type): New function.
445 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
446 (allocate_piece_closure): Acquire reference to values.
447 (read_pieced_value): Update for value-based expressions.
448 (write_pieced_value): Likewise.
449 (free_pieced_value_closure): Call value_free as needed.
450 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
451 Update for value-based expressions.
452 * dwarf2loc.h (dwarf2_get_die_type): Declare.
453 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
454 <get_base_type>: New field.
455 (struct dwarf_expr_piece) <v.value>: Change type.
456 <v.regno>: New field.
457 (struct dwarf_expr_context) <mark>: New field.
458 (dwarf_expr_piece, dwarf_expr_fetch): Update.
459 (dwarf_expr_pop, dwarf_expr_push): Remove.
460 (dwarf_expr_push_address): Declare.
461 * dwarf2expr.c (dwarf_arch_cookie): New global.
462 (struct dwarf_gdbarch_types): New.
463 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
464 functions.
465 (dwarf_expr_push): Change type of 'value' argument. Update. Now
466 static.
467 (dwarf_expr_push_address): New function.
468 (dwarf_expr_pop): Now static.
469 (dwarf_expr_fetch): Change return type.
470 (dwarf_require_integral): New function.
471 (dwarf_expr_fetch): Simplify.
472 (add_piece): Update.
473 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
474 functions.
475 (execute_stack_op) <sign_ext>: Remove.
476 Use values for DWARF stack.
477 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
478 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
479 New cases.
480 (_initialize_dwarf2expr): New function.
481 (add_piece): Update.
482 (new_dwarf_expr_context): Set new field.
483 (free_dwarf_expr_context): Call value_free_to_mark.
484 * dwarf2-frame.c (no_base_type): New function.
485 (execute_stack_op): Set get_base_type field. Update.
486
e8d28ef4
TT
4872011-05-12 Tom Tromey <tromey@redhat.com>
488
489 * dwarf2read.c (read_common_block): Fix formatting.
490
d248b706
KY
4912011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
492
493 * breakpoint.c (disable_breakpoint): Disable all locations
494 associated with a tracepoint on target if a trace experiment is
495 running.
496 (disable_command): Disable a specific tracepoint location on target if
497 a trace experiment is running.
498 (do_enable_breakpoint): Enable all locations associated with a
499 tracepoint on target if a trace experiment is running.
500 (enable_command) Enable a specific tracepoint location on target if a
501 trace experiment is running.
502 * target.c (update_current_target): Add INHERIT and de_fault clauses for
503 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
504 to_disable_tracepoint.
505 * target.h: Add declaration of struct bp_location.
506 (struct target_ops): Add new functions
507 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
508 to_disable_tracepoint to target operations.
509 (target_supports_enable_disable_tracepoint): New macro.
510 (target_enable_tracepoint): New macro.
511 (target_disable_tracepoint): New macro.
512 * remote.c (struct remote_state): Add new field.
513 (remote_enable_disable_tracepoint_feature): New.
514 (remote_protocol_features): Add new entry.
515 (remote_supports_enable_disable_tracepoint): New.
516 (remote_enable_tracepoint): New.
517 (remote_disable_tracepoint): New.
518 (init_remote_ops): Add remote_enable_tracepoint,
519 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
520 to remote operations.
521 * tracepoint.c (start_tracing): Allow tracing to start without any
522 tracepoints enabled with just a warning if they can be re-enabled
523 later.
524 * NEWS: Add news item for the new behaviour of the enable and disable
525 GDB commands when applied to tracepoints.
526 Add news items for the new remote packets QTEnable and QTDisable.
527
cc88a640
JK
5282011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
529
530 * config.in: Regenerate.
531 * configure: Regenerate.
532 * configure.ac <--with-system-readline> (for readline_echoing_p):
533 Remove the test.
534 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
535 (tui_old_rl_echoing_p): ... here.
536 (tui_setup_io): Rename extern declaration readline_echoing_p to
537 _rl_echoing_p. Adjust assignments for the both renames.
538
1f84b619
TJB
5392011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
540
541 * symtab.c (lookup_symtab): Run cleanup before returning.
542
74ac6d43
TT
5432011-05-11 Tom Tromey <tromey@redhat.com>
544
545 * dwarf2read.c (handle_data_member_location): New function.
546 (dwarf2_add_field): Use it.
547 (read_common_block): Likewise.
548
5488dafb
JK
5492011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 Make addrs->SECTINDEX always defined.
552 * symfile.c (relative_addr_info_to_section_offsets): Check for
553 SECTINDEX -1, not for zero ADDR.
554 (addrs_section_compar): Remove checking for invalid SECTINDEX.
555 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
556 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
557 on its validity.
558
84e578fb
DE
5592011-05-10 Doug Evans <dje@google.com>
560
2471d008
DE
561 * linux-thread-db.c: Whitespace cleanup.
562 (try_thread_db_load_1): Fix comment.
563
84e578fb
DE
564 * linux-thread-db.c (set_libthread_db_search_path): New function.
565 (_initialize_thread_db): Add setter for libthread-db-search-path.
566
673c2bbe
DE
5672011-05-09 Doug Evans <dje@google.com>
568
478aac75
DE
569 * NEWS: Mention --with-iconv-bin.
570 * configure.ac: New option --with-iconv-bin.
571 * configure: Regenerate.
572 * config.in: Regenerate.
573 * defs.h (relocate_gdb_directory): Declare.
574 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
575 removed progname parameter, and exported. All callers updated.
576 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
577
673c2bbe
DE
578 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
579 adding missing call to restore_child_signals_mask.
580
e4c8541f
PA
5812011-05-09 Pedro Alves <pedro@codesourcery.com>
582
583 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
584 parameter.
585 * infrun.c (proceed, start_remote): Adjust.
586 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
587 and adjust to not handle it.
588 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
589 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
590 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
591 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
592 * windows-nat.c (do_initial_windows_stuff): Adjust.
593 * infcmd.c (attach_command): Adjust.
594 (notice_new_inferior): Adjust.
595
a536c6d7
UW
5962011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
597
598 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
599 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
600 * spu-tdep.c (op_selb): Use correct value.
601
7845b013
UW
6022011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
603
604 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
605 "parent" parameter to symbol_file_add_from_bfd call.
606
9c06b0b4
TJB
6072011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
608 Thiago Jung Bauermann <bauerman@br.ibm.com>
609
610 Implement support for PowerPC BookE masked watchpoints.
611 * NEWS: Mention masked watchpoint support. Create "Changed commands"
612 section.
613 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
614 method. Initialize to NULL in all existing breakpoint_ops instances.
615 (struct breakpoint) <hw_wp_mask>: New field.
616 * breakpoint.c (is_masked_watchpoint): Add prototype.
617 (update_watchpoint): Don't set b->val for masked watchpoints. Call
618 breakpoint's breakpoint_ops.works_in_software_mode if available.
619 (watchpoints_triggered): Handle the case of a hardware masked
620 watchpoint trigger.
621 (watchpoint_check): Likewise.
622 (works_in_software_mode_watchpoint): New function.
623 (insert_masked_watchpoint, remove_masked_watchpoint)
624 (resources_needed_masked_watchpoint)
625 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
626 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
627 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
628 functions.
629 (masked_watchpoint_breakpoint_ops): New structure.
630 (watch_command_1): Check for the existence of the `mask' parameter.
631 Set b->ops according to the type of hardware watchpoint being created.
632 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
633 (ppc_linux_remove_mask_watchpoint)
634 (ppc_linux_masked_watch_num_registers): New functions.
635 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
636 to_remove_mask_watchpoint and to_masked_watch_num_registers.
637 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
638 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
639 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
640 (target_masked_watch_num_registers): New functions.
641 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
642 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
643 methods.
644 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
645 (target_masked_watch_num_registers): Add prototypes.
646
8be455d7
JK
6472011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 PR 12573
650 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
651 (producer_is_gcc_ge_4_0): New function.
652 (process_full_comp_unit): Set also symtab->locations_valid. Move the
653 symtab->language code.
654 (var_decode_location): Set cu->has_loclist.
655 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
656 skip. Intialize force_skip from locations_valid. Move the prologue
657 skipping code into two passes.
658 * symtab.h (struct symtab): Make the primary field a bitfield. New
659 field locations_valid.
660
d8228535
JK
6612011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
664 (classify_inner_name): Call cp_lookup_nested_type with
665 yylval.tsym.type.
666 * cp-namespace.c (cp_lookup_nested_type): New variable
667 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
668 type_name_no_tag_or_error with saved_parent_type.
669 * dwarf2read.c (load_partial_dies): Read in any children of
670 DW_TAG_typedef with complaint in such case.
671 * gdbtypes.c (type_name_no_tag_or_error): New function.
672 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
673 * valops.c (destructor_name_p): New comment for parameter type. Remove
674 type const. Make dname and cp const. Call type_name_no_tag_or_error.
675 * value.h (destructor_name_p): Remove type const.
676
1976171a
JK
6772011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
678
679 * symtab.c (compare_symbol_name): New function.
680 (completion_list_add_name, expand_partial_symbol_name): Call it,
681 remove the variable ncmp.
682 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
683 gdb_assert it.
684
a9634178
TJB
6852011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
686
687 Demote to sw watchpoint only in update_watchpoint.
688 * breakpoint.c (update_watchpoint): Change between software and
689 hardware watchpoint for all kinds of watchpoints, not just
690 read/write ones. Determine b->exact value here instead of
691 in watch_command_1. Error out if there are not enough resources
692 for a read or access hardware watchpoint.
693 (watch_command_1): Remove logic of checking whether there are
694 enough resources available, since update_watchpoint will do that
695 work now. Don't set b->exact here. Catch exceptions thrown by
696 update_watchpoint and delete the watchpoint.
697 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
698 Use target_exact_watchpoints instead.
699 (delete_breakpoint): Notify observers only if deleted watchpoint
700 has a breakpoint number assigned to it.
701
4c67c798
JJ
7022011-05-05 Janis Johnson <janisjo@codesourcery.com>
703
704 * MAINTAINERS: Add myself as a write-after-approval maintainer.
705
a3fcb948
JG
7062011-05-05 Jerome Guitton <guitton@adacore.com>
707
708 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
709 New functions.
710 (i386_stack_tramp_frame_unwind): New static global.
711 (i386_match_pattern): New function, extracted from i386_match_insn.
712 (i386_match_insn): Use i386_match_pattern.
713 (i386_match_insn_block): New function.
714 (i386_tramp_chain_in_reg_insns)
715 (i386_tramp_chain_on_stack_insns): New static variables.
716 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
717 of unwinders.
718
4d393d60
JM
7192011-05-04 Joseph Myers <joseph@codesourcery.com>
720
721 * configure.host (xscale*): Don't handle target.
722 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
723 handle targets.
724
f70bd40b
YQ
7252011-05-04 Yao Qi <yao@codesourcery.com>
726
727 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
728
dd3295ee
JB
7292011-05-03 Joel Brobecker <brobecker@adacore.com>
730
731 Revert:
732 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
733 | * elfread.c (elf_symtab_read): Stop memory leak.
734
90375a0e
PM
7352011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
736
737 * nto-tdep.c (nto_target): Replace deprecated call to
738 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
739
d07205c2
JK
7402011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
741
742 Fix false GCC warning.
743 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
744
1e718ff1
TJB
7452011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
746
747 * breakpoint.c (update_watchpoint): Move code to change
748 the enable state of breakpoint from here ...
749 (do_enable_breakpoint): ... to here.
750
35bef4fd
TT
7512011-04-26 Andrew Gontarek <andrewg@cray.com>
752
78290264
PP
753 * valprint.c (val_print_array_elements): Fixed poor performance
754 of printing very large arrays with repeat_count_threshold set
755 to unlimited. New comment.
35bef4fd 756
38a714bb
TT
7572011-04-29 Tom Tromey <tromey@redhat.com>
758
759 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
760 (mi_parse): Likewise.
761 * breakpoint.c (break_range_command): Use sizeof char*, not
762 char**.
763 (create_breakpoint): Likewise.
764 (parse_breakpoint_sals): Likewise.
765
eb73ad13
PA
7662011-04-29 Pedro Alves <pedro@codesourcery.com>
767
768 * linux-nat.c (linux_child_remove_fork_catchpoint)
769 (linux_child_remove_vfork_catchpoint)
770 (linux_child_remove_exec_catchpoint): New functions.
771 (linux_target_install_ops): Install them.
772
d65aec65
PM
7732011-04-29 Phil Muldoon <pmuldoon@redhat.com>
774
775 PR mi/12531
776
777 * varobj.c (install_default_visualizer): Do not install a
778 visualizer if the varobj is CPLUS_FAKE_CHILD.
779 (construct_visualizer): Likewise.
780
165195f4
JK
7812011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
784 case insensitive comparison.
785
30852783
UW
7862011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
787
788 * infrun.c (proceed): Revert previous change.
789 (resume): Instead, handle the case of signal delivery while stepping
790 off a breakpoint location here, and only if software single-stepping
791 is used. Handle nested signals.
792
7ff120b4
YQ
7932011-04-28 Yao Qi <yao@codesourcery.com>
794
795 * arm-tdep.c (copy_unmodified): Rename to ...
796 (arm_copy_unmodified): .. this. New.
797 (copy_preload): Move common part to ...
798 (install_preload): .. this. New.
799 (arm_copy_preload): New.
800 (copy_preload_reg): Move common part to ...
801 (install_preload_reg): ... this. New.
802 (arm_copy_preload_reg): New.
803 (copy_b_bl_blx): Move common part to ...
804 (install_b_bl_blx): .. this. New.
805 (arm_copy_b_bl_blx): New.
806 (copy_bx_blx_reg): Move common part to ...
807 (install_bx_blx_reg): ... this. New.
808 (arm_copy_bx_blx_reg): New.
809 (copy_alu_reg): Move common part to ...
810 (install_alu_reg): ... this. New.
811 (arm_copy_alu_reg): New.
812 (copy_alu_shifted_reg): Move common part to ...
813 (install_alu_shifted_reg): ... this. New.
814 (copy_ldr_str_ldrb_strb): Move common part to ...
815 (install_ldr_str_ldrb_strb): ... this. New.
816 (arm_copy_ldr_str_ldrb_strb): New.
817 (copy_copro_load_store): Move some common part to ...
818 (install_copy_copro_load_store): ... this. New.
819 (arm_copy_copro_load_store): New.
820 (copy_svc): Delete.
821 (arm_copy_svc): Renamed from copy_svc.
822 (copy_undef): Delete.
823 (arm_copy_undef): Renamed from copy_undef.
824 (decode_ext_reg_ld_st): Delete.
825 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
826 (decode_svc_copro): Delete.
827 (arm_decode_svc_copro): Renamed from decode_svc_copro.
828 (copy_copro_load_store, copy_alu_imm): update callers.
829 (copy_extra_ld_st, copy_block_xfer): Likewise.
830 (decode_misc_memhint_neon, decode_unconditional): Likewise.
831 (decode_miscellaneous, decode_dp_misc): Likewise.
832 (decode_ld_st_word_ubyte, decode_media): Likewise.
833 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
834 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
835 (decode_unconditional, decode_miscellaneous): Likewise.
836 (decode_media, decode_b_bl_ldmstm): Likewise.
837 (arm_process_displaced_insn): Likewise..
838 (decode_misc_memhint_neon): Delete.
839 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
840 (decode_miscellaneous): Delete.
841 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
842 (decode_dp_misc): Delete.
843 (arm_decode_dp_misc): Renamed from decode_dp_misc.
844 (decode_ld_st_word_ubyte): Delete.
845 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
846 (decode_media): Delete.
847 (arm_decode_media): Renamed from decode_media.
848 (decode_b_bl_ldmstm): Delete.
849 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
850 (decode_ext_reg_ld_st): Delete.
851 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
852 (decode_unconditional): Delete.
853 (arm_decode_unconditional): Renamed from decode_unconditional.
854
559a7a62
JK
8552011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
856
857 Case insensitive lookups implementation.
858 * dwarf2read.c: Include ctype.h.
859 (struct mapped_index): New field version.
860 (mapped_index_string_hash): New parameter index_version. New comment
861 for it. Call tolower appropriately.
862 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
863 Choose the right index version for mapped_index_string_hash.
864 (dwarf2_read_index): Support also the index version 5. Initialize the
865 new struct mapped_index field version.
866 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
867 (find_slot): Explain the version needs. Pass INT_MAX for the new
868 parameter.
869 (write_psymtabs_to_index): Produce version 5.
870 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
871 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
872 * psymtab.c (lookup_partial_symbol): Find the
873 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
874 entries.
875 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
876 NAME lowercasing.
877 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
878 (completion_list_add_name): New variable ncmp, initialize it, use it.
879 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
880 * utils.c (strcmp_iw): Support case_sensitive_off.
881 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
882 New function comment part. New variables saved_string1,
883 saved_string2 and case_pass. Add a proper second pass.
884
681bf369
JK
8852011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 Replace re_comp/re_exec by regcomp/regexec.
888 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
889 (search_symbols_name_matches): Use them, use regexec.
890 (search_symbols): New variable retval_chain, adjust the use of
891 old_chain against it. Replace re_comp by regcomp. Use the new struct
892 search_symbols_data fields, use regexec instead of re_exec.
893
b11b1f88
JK
8942011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 Format the code for the next patch.
897 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
898 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
899 New variables c1 and c2.
900
2484c66b
UW
9012011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
902
903 * infrun.c (proceed): Do not single-step into signal delivery
904 when stepping off a breakpoint location.
905 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
906 (insert_step_resume_breakpoint_at_caller): Likewise.
907 (insert_step_resume_breakpoint_at_sal): Likewise.
908 (insert_longjmp_resume_breakpoint): Likewise.
909
47423772
YQ
9102011-04-27 Yao Qi <yao@codesourcery.com>
911
912 * common/linux-ptrace.h: Remove include <sys/wait.h>.
913
13bdd2e7
JB
9142011-04-27 Joel Brobecker <brobecker@adacore.com>
915
916 * procfs.c (procfs_pass_signals): Fix advance declaration.
917
2455069d
UW
9182011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
919
920 * target.h (struct target_ops): Remove to_notice_signals;
921 add to_pass_signals.
922 (target_notice_signals): Remove.
923 (target_pass_signals): Add prototype.
924 * target.c (update_current_target): Remove to_notice_signals;
925 mention to_pass_signals.
926 (target_pass_signals): New function.
927 (debug_to_notice_signals): Remove.
928 (setup_target_debug): Do not install debug_to_notice_signals.
929
930 * infrun.c (signal_pass): New global.
931 (resume): Call target_pass_signals.
932 (handle_inferior_event): Report all signals while stepping over
933 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
934 are re-inserted when stepping over a signal handler.
935 (signal_cache_update): New function.
936 (signal_stop_update): Call it.
937 (signal_print_update): Likewise.
938 (signal_pass_update): Likewise.
939 (handle_command): Call signal_cache_update and target_pass_signals
940 instead of target_notice_signals.
941 (_initialize_infrun): Initialize signal_pass.
942
943 * linux-nat.c (pass_mask): New global.
944 (linux_nat_pass_signals): New function.
945 (linux_nat_create_inferior): Report all signals initially.
946 (linux_nat_attach): Likewise.
947 (linux_nat_resume): Use pass_mask to decide whether to directly
948 handle an inferior signal.
949 (linux_nat_wait_1): Likewise.
950 (linux_nat_add_target): Install to_pass_signals callback.
951
952 * nto-procfs.c (notice_signals): Remove.
953 (procfs_resume): Do not call notice_signals.
954 (procfs_notice_signals): Remove.
955 (procfs_pass_signals): New function.
956 (init_procfs_ops): Install to_pass_signals callback instead of
957 to_notice_signals callback.
958 (_initialize_procfs): Report all signals initially.
959
960 * procfs.c (procfs_notice_signals): Remove.
961 (procfs_pass_signals): New function.
962 (procfs_target): Install to_pass_signals callback instead of
963 to_notice_signals callback.
964 (register_gdb_signals): Remove.
965 (procfs_debug_inferior): Report all signals initially.
966 (procfs_init_inferior): Remove redundant register_gdb_signals call.
967
968 * remote.c (remote_pass_signals): Add numsigs and pass_signals
969 parameters; use them instead of calling signal_..._state routines.
970 (remote_notice_signals): Remove.
971 (remote_start_remote): Report all signals initially.
972 (remote_resume): Do not call remote_pass_signals.
973 (_initialize_remote): Install to_pass_signals callback instead of
974 to_notice_signals callback.
975
46c6471b
PA
9762011-04-27 Pedro Alves <pedro@codesourcery.com>
977
978 * breakpoint.c (user_settable_breakpoint): Delete.
979 (user_breakpoint_p): Remove check on user_settable_breakpoint.
980 (delete_command): Check user_breakpoint_p instead of looking at
981 the breakpoint's type.
982 (disable_command): Ditto.
983 (enable_command): Ditto.
984 (delete_trace_command): Use user_breakpoint_p instead of looking
985 at the breakpoint number directly. When checking if there are
986 user visible tracepoints, in order to know whether to ask the user
987 for confirmation, check whether the breakpoint is actually a
988 tracepoint.
989
f6d90398
VP
9902011-04-27 Vladimir Prus <vladimir@codesourcery.com>
991
992 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
993 compilation.
994
8d3788bd
VP
9952011-04-27 Vladimir Prus <vladimir@codesourcery.com>
996
997 MI breakpoint notifications.
998
f33edef8
PP
999 * annotate.c (breakpoint_changed): Adjust parameter type.
1000 * breakpoint.c (set_breakpoint_condition): Adjust to change
1001 in breakpoint_modified type.
1002 (breakpoint_set_commands): Likewise.
1003 (do_map_commands_command): Likewise.
1004 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1005 changed after bumping hit count.
1006 (bpstat_stop_status): Likewise.
1007 (print_one_breakpoint_location): Don't wrap in tuple here.
1008 (print_one_breakpoint): Always print individual locations.
1009 For locations, use unnamed tuple.
1010 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1011 has changed.
1012 (create_catchpoint, create_syscall_event_catchpoint): Call
1013 breakpoint_created obsever.
1014 (mention): Don't call breakpoint_created observer.
1015 (create_breakpoint_sal): Call breakpoint_created observer.
1016 (create_breakpoint, watch_command_1): Likewise.
1017 (create_ada_exception_breakpoint): Likewise.
1018 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1019 (locations_are_equal): New.
1020 (update_breakpoint_locations): If locations were changed, notify.
1021 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1022 Call breakpoint_modified observer.
1023
1024 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1025 (mi_cmd_break_insert): Don't set observers for modify and delete.
1026 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1027 (mi_breakpoint_created, mi_breakpoint_deleted)
1028 (mi_breakpoint_modified): New.
1029 (mi_interpreter_init): Hook the above.
1030 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1031 while -break-* commands are executing.
1032 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1033 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1034 (mi_redirect): New.
1035 (mi_ui_out_impl): Hook in mi_redirect.
1036 (mi_field_skip): True to the name, skip the field, don't output
1037 a field with an empty value.
1038
1039 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1040 (gdbpy_breakpoint_deleted): Adjust.
1041 * tui/tui-hooks.c (tui_event_create_breakpoint)
1042 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 1043
a8f42b45
UW
10442011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1045
1046 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1047 (procfs_remove_hw_watchpoint): Likewise.
1048
57e12211
TT
10492011-04-26 Michael Walle <michael@walle.cc>
1050
1051 * remote.c (remote_start_remote): Ack packet after sending the
1052 interrupt sequence.
1053
af96c192
YQ
10542011-04-26 Yao Qi <yao@codesourcery.com>
1055
f33edef8
PP
1056 * linux-nat.c: Move common macros to ...
1057 Include linux-ptrace.h.
1058 * common/linux-ptrace.h: ... here. New.
af96c192 1059
3e03848b
JK
10602011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1061
1062 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1063 !objfile_has_partial_symbols. New comment.
1064 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1065 SYM_READ_PSYMBOLS is not present. Extend the comment.
1066 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1067
1ae0d051
JK
10682011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 * defs.h (ENUM_BITFIELD): Remove.
1071
03f2bd59
JK
10722011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 Eli Zaretskii <eliz@gnu.org>
1074
1075 * NEWS: Document the new gdbserver --once option.
1076
4161fbb0
JZ
10772011-04-21 Jie Zhang <jzhang918@gmail.com>
1078
1079 * MAINTAINERS: Update my email address.
1080
bcb28afc
PM
10812011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1082
1083 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1084 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1085 function call if __STDC_ISO_10646__ macro is defined.
1086 (intermediate_encoding): New prototype.
1087 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1088 to generate compile time error for unsupported gdb_wchar_t size.
1089 (ENDIAN_SUFFIX): New macro.
1090 (intermediate_encoding): New function.
1091
7b08b9eb
JK
10922011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1093
1094 * ada-lang.c (struct add_partial_datum): Update the comment for
1095 expand_partial_symbol_name.
1096 (ada_add_partial_symbol_completions): Rename to ...
1097 (ada_expand_partial_symbol_name): ... here, change return type, update
1098 function comment, call symbol_completion_match instead of
1099 symbol_completion_add.
1100 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1101 and ada_expand_partial_symbol_name.
1102 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1103 FILE_MATCHER.
1104 (dw2_map_symbol_names): Remove.
1105 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1106 * psymtab.c (map_symbol_names_psymtab): Remove.
1107 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1108 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1109 order.
1110 (psym_functions): Unlist map_symbol_names_psymtab.
1111 (map_partial_symbol_names): Rename to ...
1112 (expand_partial_symbol_names): ... here, change the FUN type, call
1113 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1114 * psymtab.h (map_partial_symbol_names): Rename to ...
1115 (expand_partial_symbol_names): ... here, change the FUN type.
1116 * symfile.h (struct quick_symbol_functions): Update the description of
1117 expand_symtabs_matching. Remove map_symbol_names.
1118 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1119 (struct add_name_data): Update the comment for
1120 expand_partial_symbol_name.
1121 (add_partial_symbol_name): Rename to ...
1122 (expand_partial_symbol_name): ... here. Replace
1123 completion_list_add_name call by strncmp.
1124 (default_make_symbol_completion_list_break_on): Use now
1125 expand_partial_symbol_names and expand_partial_symbol_name.
1126 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1127
90476074
TT
11282011-04-20 Tom Tromey <tromey@redhat.com>
1129
1130 * dwarf2read.c (save_gdb_index_command): Replace format
1131 documentation with a pointer to the manual.
1132
c21236dc
PA
11332011-04-20 Pedro Alves <pedro@codesourcery.com>
1134
1135 * regcache.c: Include remote.h.
1136 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1137 (regcache_dump): Handle regcache_dump_remote.
1138 (maintenance_print_remote_registers): New function.
1139 (_initialize_regcache): Install "maint print remote-registers"
1140 command.
1141 * remote.c (map_regcache_remote_table): New function, factored out
1142 from ...
1143 (init_remote_state): ... here.
1144 (remote_register_number_and_offset): New.
1145 * remote.h (remote_register_number_and_offset): Declare.
1146
b78974c3
PA
11472011-04-20 Pedro Alves <pedro@codesourcery.com>
1148
1149 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1150 null_ptid, assume and allow a NULL address space, instead of
1151 asking the target for the ptid's address space.
1152 * infrun.c (ptid_is_pid): Remove assertion.
1153
7a9dd1b2
TT
11542011-04-19 Tom Tromey <tromey@redhat.com>
1155
1156 * windows-tdep.c (windows_xfer_shared_library):
1157 * windows-nat.c (get_module_name, windows_make_so):
1158 * v850-tdep.c (v850_handle_pushm):
1159 * utils.c (null_cleanup, gdb_realpath):
1160 * ui-out.c (get_next_header):
1161 * tracepoint.c (clear_traceframe_info):
1162 * symtab.c (lookup_symtab):
1163 * serial.h (struct serial_ops):
1164 * mipsread.c (read_alphacoff_dynamic_symtab):
1165 * infcmd.c (print_return_value):
1166 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1167 * f-exp.y (parse_number):
1168 * exceptions.c (catch_exceptions):
1169 * dummy-frame.c (dummy_frame_this_id):
1170 * defs.h (struct cleanup):
1171 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1172 * arm-tdep.c (arm_push_dummy_call):
1173 * amd64-tdep.h (amd64_collect_xsave):
1174 * amd64-tdep.c (amd64_collect_xsave):
1175 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1176 * README (typing): Remove duplicate words.
1177 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1178 * infrun.c (siginfo_value_read): Fix typo.
1179 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1180 * top.c (source_line_number): Add comma.
1181
9941e0c5
MK
11822011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1183
1184 * thread.c (any_live_thread_of_process): Prioritize threads
1185 that are not executing.
1186 * gdbthread.h (any_live_thread_of_process): Update comment
1187 as per above change.
1188
ed4b0e6a
AS
11892011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1190
1191 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1192 (scan_xcoff_symtab): Likewise.
1193
9b13a2db
PM
11942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1195
1196 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1197 inside if clause.
1198
1c6e1b0d
PM
11992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1200 Pedro Alves <pedro@codesourcery.com>
1201
1202 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1203 variables to simplify code and avoid == operator at end of
1204 line as this is against GNU coding standards.
1205
74de0234
PM
12062011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1207
1208 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1209 lm_name to name_lm to avoid conflict with lm_name function.
1210
b23518f0
PM
12112011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1212
1213 ARI fixes: Use only lowercase function name for static functions.
1214 * nto-tdep.c (LM_ADDR): Rename to...
1215 (lm_addr): New function name.
1216 (nto_relocate_section_addresses): Adapt to change above.
1217 * solib-sunos.c (LM_ADDR): Rename to...
1218 (lm_addr): New function name.
1219 (LM_NEXT): Rename to...
1220 (lm_next): New function name.
1221 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1222 function name changes above.
1223 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1224 (lm_addr_from_link_map): New function name.
1225 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1226 (has_lm_dynamic_from_link_map): New function name.
1227 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1228 (lm_dynamic_from_link_map): New function name.
1229 (LM_ADDR_CHECK): Rename to...
1230 (lm_addr_check): New function name.
1231 (LM_NEXT): Rename to...
1232 (lm_next): New function name.
1233 (LM_PREV): Rename to...
1234 (lm_prev): New function name.
1235 (LM_NAME): Rename to...
1236 (lm_name): New function name.
1237 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1238 (ignore_first_link_map_entry): New function name.
1239 (svr4_keep_data_in_core): Adapt to function name changes above.
1240 (svr4_current_sos): Likewise.
1241 (enable_break): Likewise.
1242 (svr4_relocate_section_addresses): Likewise.
1243
1448a0a2
PM
12442011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1245
1246 ARI cleanup.
1247 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1248 sprintf. Simplify code and avoid loosing memory.
1249 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1250 (call0_frame_cache): Remove && operator from end of line.
1251
02835898
JK
12522011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 Fix libraries displacement if they change whether they were prelinked.
1255 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1256 does not match. Comment why.
1257
9a845ea2
JK
12582011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 * corelow.c: Include wrapper.h.
1261 (core_open): Call now gdb_target_find_new_threads.
1262 * wrapper.c: Include target.h.
1263 (gdb_target_find_new_threads): New.
1264 * wrapper.h (gdb_target_find_new_threads): New declaration.
1265
254f582e
JK
12662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1267
1268 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1269 even if !TARGET_HAS_EXECUTION.
1270
63524580
JK
12712011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1274 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1275 bfd_get_synthetic_symtab.
1276 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1277 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1278 parameter parent, remove the call to add_separate_debug_objfile.
1279 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1280 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1281 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1282 parent, new comment for it, call add_separate_debug_objfile for it.
1283 (symbol_file_add_separate): Pass objfile as the parameter parent,
1284 remove the call to add_separate_debug_objfile.
1285 (symbol_file_add_from_bfd): New parameter parent, pass it.
1286 (symbol_file_add): Pass NULL to the new parameter parent.
1287 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1288
90359a16
JK
12892011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1290
1291 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1292 BSF_SYNTHETIC.
1293
626e7282
JK
12942011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1295
1296 Fix Python access to inlined frames.
1297 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1298 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1299
cf31e6f9
TT
13002011-04-15 Tom Tromey <tromey@redhat.com>
1301
1302 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1303
c8d895f1
GB
13042011-04-15 Gary Benson <gbenson@redhat.com>
1305
1306 * MAINTAINERS: Add myself to write-after-approval section.
1307
56a9aa1d
MF
13082011-04-14 Mike Frysinger <vapier@gentoo.org>
1309
1310 * remote-sim.c (sim_command_completer): New function.
1311 (_initialize_remote_sim): Set completer to sim_command_completer.
1312
ba770c9c
TJB
13132011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1314
1315 * breakpoint.c (print_exception_catchpoint): Rename to ...
1316 (print_it_exception_catchpoint): ... this.
1317 (gnu_v3_exception_catchpoint_ops): Update with new name
1318 for print_it_exception_catchpoint.
1319
51bf2553
EBM
13202011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1321
1322 * MAINTAINERS: Add myself for write after approval privileges.
1323
d242658c
MP
13242011-04-13 Marek Polacek <mpolacek@redhat.com>
1325
1326 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1327
4a4106ca
TJB
13282011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1329
1330 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1331
26063d49
TJB
13322011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1333
1334 * breakpoint.c (save_breakpoints): Verify whether
1335 breakpoint_ops.print_recreate is defined before calling it.
1336
7782b183
GB
13372011-04-11 Gary Benson <gbenson@redhat.com>
1338
1339 Fix failure with --enable-maintainer-mode.
1340 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1341
e8930875
JK
13422011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1343
1344 Code cleanup.
1345 * symtab.c (search_symbols): Reorder the KIND description in the
1346 function comment. Remove the unused 4th element of types, types2,
1347 types3 and types4. New gdb_assert on KIND.
1348 (symtab_symbol_info): Remove the unused 4th element of classnames.
1349 New gdb_assert on KIND.
1350 * symtab.h (enum search_domain): New warning in the enum comment.
1351 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1352 TYPES_DOMAIN.
1353
b4f2f049
JK
13542011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1355
1356 Fix crash of gdb save-index on a STABS file.
1357 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1358 PSYMTABS_ADDRMAP.
1359
60d5a603
JK
13602011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1363 * dwarf2read.c: Include ctype.h.
1364 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1365 functions.
1366 (dwarf2_add_field): Fix new_field->accessibility by calling
1367 dwarf2_default_access_attribute. Restructure setting accessibility
1368 vs. virtuality.
1369 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1370 is_private and is_protected by calling
1371 dwarf2_default_access_attribute.
1372
e0f68161
KB
13732011-04-08 Kevin Buettner <kevinb@redhat.com>
1374
1375 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1376 to the initialization.
1377
2e1aae43
SE
13782011-04-08 Steve Ellcey <sje@cup.hp.com>
1379
1380 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1381 initalization.
1382
c6ca3dab
PM
13832011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1384
1385 Remove support for old Cygwin 1.5 versions.
1386 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1387 function on old Cygwin version.
1388 * windows-nat.c: Remove cygwin version check and always define
1389 __USEWIDE for Cygwin compilation.
1390
bd18283a
YQ
13912011-04-07 Yao Qi <yao@codesourcery.com>
1392
1393 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1394 and TO.
1395 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1396 (arm_copy_svc): Remove parameters INSN and TO.
1397 (decode_svc_copro): Update caller.
1398 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1399 from function pointer `copy_svc_os'.
1400
8c8dba6d
YQ
14012011-04-07 Yao Qi <yao@codesourcery.com>
1402
1403 * arm-tdep.c (cleanup_branch): Set a correct return address in
1404 LR for ARM and Thumb.
1405
59d7bcaf
JK
14062011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 Code cleanup.
1409 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1410 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1411 in the function comment, a new note on values compatibility.
1412 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1413 * symtab.h (SYMBOL_HASH_NEXT): New.
1414
e7db58ea
TJB
14152011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1416
1417 * ppc-linux-nat.c (check_condition): Add len output parameter.
1418 Set it based on the memory region referenced in the condition
1419 expression. Update all callers.
1420
9f743ef6
JK
14212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 Fix crash regression on systems featuring .gdb_index.
1424 * objfiles.c (free_objfile): Move the
1425 forget_cached_source_info_for_objfile call earlier. Comment it.
1426 Extend the comment for objfile_free_data.
1427
9182c5bc
JK
14282011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Fix regression of displaying the debug format.
1431 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1432 subfile.
1433
04bd08de
TT
14342011-04-04 Tom Tromey <tromey@redhat.com>
1435
1436 * cli/cli-interp.c (struct captured_execute_command_args):
1437 Remove.
1438 (do_captured_execute_command): Remove.
1439 (safe_execute_command): Use TRY_CATCH.
1440 * cli/cli-script.c (struct wrapped_read_command_file_args):
1441 Remove.
1442 (wrapped_read_command_file): Remove.
1443 (script_from_file): Use TRY_CATCH.
1444 * exceptions.c (catch_exception): Remove.
1445 * exceptions.h (catch_exception): Remove.
1446 (deprecated_throw_reason): Update comment.
1447 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1448 argument to 'context'.
1449 (mi_execute_command): Use TRY_CATCH.
1450 * remote.c (struct start_remote_args): Remove.
1451 (remote_start_remote): Update; change arguments.
1452 (remote_open_1): Use TRY_CATCH.
1453
58438ac1
TT
14542011-04-04 Tom Tromey <tromey@redhat.com>
1455
1456 * tracepoint.c (scope_info): Update.
1457 * symtab.c (decode_line_spec): Update.
1458 * python/python.c (gdbpy_decode_line): Update.
1459 * linespec.h (decode_line_1): Update.
1460 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1461 (decode_compound, find_method, symtab_from_filename)
1462 (decode_variable): Likewise.
1463 * cli/cli-cmds.c (edit_command): Update.
1464 (list_command): Update.
1465 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1466 argument.
1467 (create_breakpoint): Update.
1468 (until_break_command): Update.
1469 (addr_string_to_sals): Update.
1470 (decode_line_spec_1): Update.
1471
b78a6381
TT
14722011-04-04 Tom Tromey <tromey@redhat.com>
1473
1474 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1475 (do_captured_parse_breakpoint): Remove.
1476 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1477 Use TRY_CATCH directly.
1478
00174a86
TT
14792011-04-04 Tom Tromey <tromey@redhat.com>
1480
1481 * symtab.h (free_symtab): Remove.
1482 (forget_cached_source_info_for_objfile): Declare.
1483 * symmisc.c (free_symtab): Remove.
1484 * source.c (forget_cached_source_info_for_objfile): New function.
1485 (forget_cached_source_info): Use it.
1486 * objfiles.c (free_objfile): Simplify check before calling
1487 clear_current_source_symtab_and_line. Call
1488 forget_cached_source_info_for_objfile.
1489
30cc903e
TT
14902011-04-04 Tom Tromey <tromey@redhat.com>
1491
1492 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1493 (new_symtab): Don't set `free_code' on symtab.
1494 (new_linetable): Properly handle size==0.
1495 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1496 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1497 free_func.
1498 * jv-lang.c (struct jv_per_objfile_data): New.
1499 (jv_per_objfile_free): Free the data.
1500 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1501 (get_java_class_symtab): Set the `dict' field on the
1502 jv_per_objfile_data.
1503 (free_class_block): Remove.
1504 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1505 the symtab.
1506
0c2e6019
TT
15072011-04-04 Tom Tromey <tromey@redhat.com>
1508
1509 * symfile.c (reread_symbols): Update.
1510 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1511 field.
1512 * objfiles.c (allocate_objfile): Update.
1513 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1514 declare.
1515 * cp-namespace.c (lookup_symbol_file): Don't call
1516 lookup_possible_namespace_symbol.
1517 (initialize_namespace_symtab, get_possible_namespace_block)
1518 (free_namespace_block, cp_check_possible_namespace_symbols)
1519 (check_possible_namespace_symbols_loop)
1520 (check_one_possible_namespace_symbol)
1521 (lookup_possible_namespace_symbol): Remove.
1522 (maintenance_cplus_namespace): Replace with notice.
1523 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1524
554d387d
TT
15252011-04-04 Tom Tromey <tromey@redhat.com>
1526
1527 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1528 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1529 * symmisc.c (free_symtab): Don't free debugformat.
1530 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1531 (record_debugformat, record_producer): Document.
1532 * buildsym.c (end_symtab): Don't save debugformat and producer
1533 names on obstack.
1534 (end_symtab): Don't free debugformat and producer fields.
1535 (record_debugformat): Don't call xstrdup.
1536 (record_producer): Likewise.
1537
d4d4db8a
TT
15382011-04-04 Tom Tromey <tromey@redhat.com>
1539
1540 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1541 (source_line_charpos, source_charpos_line): Remove.
1542
8903c50d
TT
15432011-04-04 Tom Tromey <tromey@redhat.com>
1544
1545 * symtab.h (domain_enum): Split in two...
1546 (enum search_domain): New.
1547 (search_symbols): Update.
1548 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1549 redundant declarations.
1550 (search_symbols): Change 'kind' argument to search_domain.
1551 Update.
1552 (print_symbol_info): Likewise.
1553 (symtab_symbol_info): Likewise.
1554 * symfile.h (struct quick_symbol_functions)
1555 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1556 <expand_symtabs_matching>: Likewise.
1557 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1558 (expand_symtabs_matching_via_partial): Update.
1559 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1560 (dw2_expand_symtabs_for_function): Update.
1561 * block.h: Moved anonymous enum...
1562 * defs.h (enum block_enum): ... here. Now named.
1563
d9351f5f 15642011-04-03 Joel Brobecker <brobecker@adacore.com>
1565
1566 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1567 * version.in: Bump version to 7.3.50.20110403-cvs.
1568
d6e00af6
JB
15692011-04-03 Joel Brobecker <brobecker@adacore.com>
1570
1571 * NEWS: Create a new section for the next release branch.
1572 Rename the section of the current branch, now that it has
1573 been cut.
1574
2b9e5ea6
UW
15752011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1576
1577 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1578 for "fpscr" in target description.
1579
0cf03b49
JK
15802011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1583 initialize it. Delay HASH initialization. Strip the part after open
1584 parenthesis for languages with qualifiers. Call do_cleanups.
1585
5d901a73
TT
15862011-04-01 Tom Tromey <tromey@redhat.com>
1587
1588 * utils.c (report_command_stats): Don't print `-' for negative
1589 number.
1590
b0dd7688
JB
15912011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1592
1593 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1594 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1595 typedefs.
1596
956a9fb9
JB
15972011-04-01 Joel Brobecker <brobecker@adacore.com>
1598
1599 * breakpoint.h (bpdisp_text): Add declaration.
1600 * breakpoint.c (bpdisp_text): Make non-static.
1601 * ada-lang.c: #include "mi/mi-common.h".
1602 (print_it_exception): Rewrite to improve GDB/MI output.
1603
3352110b
PA
16042011-04-01 Pedro Alves <pedro@codesourcery.com>
1605
1606 * arm-tdep.h (struct address_space): Add forward declaration.
1607
18819fa6
UW
16082011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1609
1610 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1611 * arm-tdep.c (arm_override_mode): New global.
1612 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1613 execution mode heuristics.
1614 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1615 second single-step breakpoint if needed, using
1616 arm_insert_single_step_breakpoint.
1617 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1618 ARM execution mode, do not call thumb_get_next_pc_raw.
1619 (arm_get_next_pc): Encode execution mode in return value. Call
1620 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1621 (arm_insert_single_step_breakpoint): New function.
1622 (arm_software_single_step): Call it.
1623 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1624 argument to return execution mode of sigreturn target.
1625 (arm_linux_syscall_next_pc): Use it.
1626 (arm_linux_copy_svc): Update call.
1627 (arm_linux_software_single_step): Call
1628 arm_insert_single_step_breakpoint.
1629
a6e293d1
JK
16302011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1631
1632 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1633 the comment.
1634
a4c8e806
TT
16352011-03-31 Tom Tromey <tromey@redhat.com>
1636
1637 * varobj.c (update_dynamic_varobj_children): Properly handle
1638 errors from iterator.
1639
df5c6c50
JK
16402011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1643 struct linkage name twice.
1644
1dae3efc
TT
16452011-03-31 Tom Tromey <tromey@redhat.com>
1646
1647 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1648 missing ">" to message.
1649
f4f7ab05
TT
16502011-03-31 Tom Tromey <tromey@redhat.com>
1651
1652 * varobj.c (instantiate_pretty_printer): Remove duplicate
1653 'return'.
1654
fcf250e2
UW
16552011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1656
1657 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1658 if neither saved value nor register available (e.g. signal frame).
1659
ee6436e3
TJB
16602011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1661
1662 * macroexp.c (expand): Avoid uninitialized variable
1663 compiler warning.
1664
423f41a5
TJB
16652011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1666
1667 * breakpoint.c (break_range_command): Fix typo in comment.
1668
f1310107
TJB
16692011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1670 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1671
1672 Implement support for PowerPC BookE ranged breakpoints.
1673 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1674 * breakpoint.h (struct bp_target_info) <length>: New member
1675 variable.
1676 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1677 instead of struct breakpoint as argument, and also add ASPACE
1678 and BP_ADDR arguments. Update all callers.
1679 (struct breakpoint_ops) <print_one_detail>: New method.
1680 (struct breakpoint) <addr_string_range_end>: New member variable.
1681 * breakpoint.c (breakpoint_location_address_match): Add function
1682 prototype.
1683 (insert_bp_location): Set bl->target_info.length.
1684 (breakpoint_here_p): Call breakpoint_location_address_match.
1685 (moribund_breakpoint_here_p): Likewise.
1686 (regular_breakpoint_inserted_here_p): Likewise.
1687 (breakpoint_thread_match): Likewise.
1688 (bpstat_stop_status): Likewise.
1689 (bpstat_check_location): Move call to
1690 breakpoint_ops.breakpoint_hit to the top.
1691 (print_one_breakpoint_location): Call
1692 breakpoint_ops.print_one_detail if available.
1693 (breakpoint_address_match_range): New function.
1694 (breakpoint_location_address_match): Likewise.
1695 (breakpoint_locations_match): Compare the length field of the
1696 locations too.
1697 (hw_breakpoint_used_count): Count resources used by all locations
1698 in a breakpoint, and use breakpoint_ops.resources_needed if
1699 available.
1700 (breakpoint_hit_ranged_breakpoint): New function.
1701 (resources_needed_ranged_breakpoint): Likewise.
1702 (print_it_ranged_breakpoint): Likewise.
1703 (print_one_ranged_breakpoint): Likewise.
1704 (print_one_detail_ranged_breakpoint): Likewise.
1705 (print_mention_ranged_breakpoint): Likewise.
1706 (print_recreate_ranged_breakpoint): Likewise.
1707 (ranged_breakpoint_ops): New structure.
1708 (find_breakpoint_range_end): New function.
1709 (break_range_command): Likewise.
1710 (delete_breakpoint): Free addr_string_range_end.
1711 (update_breakpoint_locations): Add SALS_END argument. Update
1712 all callers. Calculate breakpoint length if a non-zero SALS_END
1713 is given. Call breakpoint_locations_match instead of
1714 breakpoint_address_match.
1715 (reset_breakpoint): Find SaL of the end of the range if B is a
1716 ranged breakpoint.
1717 (_initialize_breakpoint): Register break-range command.
1718 * defs.h (print_core_address): Add function prototype.
1719 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1720 function.
1721 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1722 (ppc_linux_remove_hw_breakpoint): Likewise.
1723 (_initialize_ppc_linux_nat): Initialize
1724 to_ranged_break_num_registers.
1725 * target.c (update_current_target): Add comment about
1726 to_ranged_break_num_registers.
1727 (target_ranged_break_num_registers): New function.
1728 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1729 New method.
1730 (target_ranged_break_num_registers): Add function prototype.
1731 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1732 * utils.c (print_core_address): ... here.
1733
02d20e4a
UW
17342011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1735
1736 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1737 variable compiler warning.
1738
ef23e705
TJB
17392011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1740
1741 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1742 code from here ...
1743 (re_set_breakpoint): ... to here ...
1744 (addr_string_to_sals): ... and here.
1745
311e6ab3
PM
17462011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1747
1748 * Makefile.in (SFILES): Add missing C sources.
1749 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1750 Add missing headers.
1751
acd1d99c
MF
17522011-03-29 Mike Frysinger <vapier@gentoo.org>
1753
1754 * .gitignore: New file.
1755
66ee2731
MF
17562011-03-29 Mike Frysinger <vapier@gentoo.org>
1757
1758 * NEWS: Mention new cfi device simulation.
1759
53832f31
TT
17602011-03-29 Tom Tromey <tromey@redhat.com>
1761
1762 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1763 otherwise anonymous types.
1764 (dwarf2_name): Likewise.
1765 * valops.c (value_struct_elt_for_reference): Refine artificial
1766 type logic. Call error if j==-1.
1767
09b58708
JK
17682011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1769
1770 Fix false GCC warning.
1771 * infcall.c (find_function_addr): Initialize funaddr.
1772
6023c606
PM
17732011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1774
1775 Fix mingw compilation with --enable-targets=all.
1776 * remote-mips.c (gdb_usleep.h): Include header.
1777 (mips_enter_debug): Use gdb_usleep instead of sleep.
1778
0e30163f
JK
17792011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1780
1781 Support resolution of STT_GNU_IFUNC via breakpoints.
1782 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1783 bp_gnu_ifunc_resolver_return.
1784 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1785 the loop. Support bp_gnu_ifunc_resolver and
1786 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1787 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1788 breakpoints.
1789 (bptype_string, print_one_breakpoint_location): Support
1790 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1791 (user_settable_breakpoint): Return true also for
1792 bp_gnu_ifunc_resolver.
1793 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1794 bp_gnu_ifunc_resolver_return.
1795 (set_breakpoint_location_function): New parameter explicit_loc,
1796 describe it. Call find_pc_partial_function_gnu_ifunc with new
1797 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1798 EXPLICIT_LOC is not set.
1799 (set_raw_breakpoint): Set EXPLICIT_LOC for
1800 set_breakpoint_location_function.
1801 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1802 set_breakpoint_location_function.
1803 (mention): Support bp_gnu_ifunc_resolver and
1804 bp_gnu_ifunc_resolver_return.
1805 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1806 set_breakpoint_location_function.
1807 (update_breakpoint_locations): Remove static.
1808 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1809 bp_gnu_ifunc_resolver_return.
1810 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1811 bp_gnu_ifunc_resolver_return.
1812 (update_breakpoint_locations): New declaration.
1813 * elfread.c: Include gdbthread.h and regcache.h.
1814 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1815 functions.
1816 (elf_gnu_ifunc_fns): Install them.
1817 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1818 (stub_gnu_ifunc_resolver_return_stop): New functions.
1819 (stub_gnu_ifunc_fns): Install them.
1820 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1821 and gnu_ifunc_resolver_return_stop.
1822 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1823
07be84bf
JK
18242011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1825
1826 STT_GNU_IFUNC reader implementation.
1827 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1828 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1829 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1830 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1831 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1832 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1833 (elf_gnu_ifunc_resolve_addr): New.
1834 (elf_symfile_read): Call elf_rel_plt_read.
1835 (elf_gnu_ifunc_fns): New.
1836 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1837 Install elf_gnu_ifunc_fns.
1838 * infcall.c (find_function_return_type): New function.
1839 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1840 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1841 (stub_gnu_ifunc_resolve_name): New functions.
1842 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1843 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1844 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1845
300f8e10
JK
18462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 Code cleanup for later STT_GNU_IFUNC support.
1849 * infcall.c (find_function_addr): Remove variable code, use explicit
1850 dereferences for it. Move VALUE_TYPE initialization later.
1851
11c81455
JK
18522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1853
1854 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1855 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1856 (clear_pc_function_cache): Clear it.
1857 (find_pc_partial_function): Rename to ...
1858 (find_pc_partial_function_gnu_ifunc): ... this function. New
1859 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1860 (find_pc_partial_function): New wrapper for this function.
1861 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1862
0875794a
JK
18632011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 GDB internal type support for STT_GNU_IFUNC.
1866 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1867 (elf_symtab_read): Set mst_text_gnu_ifunc for
1868 BSF_GNU_INDIRECT_FUNCTION.
1869 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1870 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1871 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1872 nodebug_got_plt_symbol.
1873 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1874 (TYPE_GNU_IFUNC): New.
1875 (struct main_type): New field flag_gnu_ifunc.
1876 (struct builtin_type): New field builtin_func_func.
1877 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1878 nodebug_got_plt_symbol.
1879 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1880 (in_gnu_ifunc_stub): New.
1881 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1882 mst_text_gnu_ifunc.
1883 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1884 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1885 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1886 in_gnu_ifunc_stub.
1887 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1888 * symtab.c (search_symbols): Likewise.
1889 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1890 and mst_slot_got_plt.
1891 (in_gnu_ifunc_stub): New declaration.
1892
d0fb5eae
JK
18932011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
1895 Support a ring of related breakpoints.
1896 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1897 other functions, add gdb_assert.
1898 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1899 watchpoint_del_at_next_stop.
1900 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1901 (bpstat_stop_status): Handle ring in related_breakpoint.
1902 (set_raw_breakpoint_without_location): Initialize ring in
1903 related_breakpoint.
1904 (delete_breakpoint): Handle ring in related_breakpoint, use
1905 watchpoint_del_at_next_stop.
1906 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1907
9cded63f
TT
19082011-03-28 Tom Tromey <tromey@redhat.com>
1909
1910 PR symtab/12441:
1911 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1912 with `language_minimal'.
1913
467d42c4
UW
19142011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1915
1916 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1917 instead of checking for STT_ARM_TFUNC symbol type.
1918
62853458
TT
19192011-03-25 Tom Tromey <tromey@redhat.com>
1920
1921 * linespec.c (symbol_found): Restore line-based result for
1922 non-LOC_LABEL symbols.
1923
a7417d46
KT
19242011-03-25 Kai Tietz <ktietz@redhat.com>
1925
1926 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1927 instead of strcmp for comparison.
1928 (tui_source_is_displayed): Likewise.
1929 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1930
55f1336d
TT
19312011-03-24 Mark Wielaard <mjw@redhat.com>
1932
f33edef8
PP
1933 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1934 complaint.
1935 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1936 (find_partial_die_in_comp_unit): Likewise in comment.
1937 (read_attribute_value): Likewise.
1938 (lookup_die_type): Likewise.
1939 (dwarf_form_name): Likewise.
1940 (dump_die_shallow): Likewise.
1941 (follow_die_ref_or_sig): Likewise.
55f1336d 1942
9ef07c8c
TT
19432011-03-24 Tom Tromey <tromey@redhat.com>
1944
1945 PR breakpoints/11816:
1946 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1947 (decode_compound): Update.
1948 (find_function_symbol): New function.
1949 (decode_dollar): Update.
1950 (decode_label): Add 'function_symbol' parameter. Handle
1951 function-relative labels.
1952 (decode_variable): Update.
1953 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1954 not its line. Set `special_display' and canonical name for
1955 labels.
1956
56435ebe
TT
19572011-03-24 Tom Tromey <tromey@redhat.com>
1958
1959 * linespec.h (struct linespec_result) <special_display>: New
1960 field.
1961 * breakpoint.h (struct breakpoint) <display_canonical>: New
1962 field.
1963 * breakpoint.c (print_breakpoint_location): Respect
1964 display_canonical.
1965 (create_breakpoint_sal): Add 'display_canonical' parameter.
1966 (create_breakpoints_sal): Update.
1967 (create_breakpoint): Update.
1968
7efd8fc2
TT
19692011-03-24 Tom Tromey <tromey@redhat.com>
1970
1971 * symtab.c (decode_line_spec): Update.
1972 * linespec.c (build_canonical_line_spec): Change type of
1973 'canonical'.
1974 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1975 (find_method, decode_all_digits, decode_dollar, decode_label)
1976 (symbol_found): Likewise.
1977 (init_linespec_result): New function.
1978 * breakpoint.c (struct captured_parse_breakpoint_args)
1979 <canonical_p>: New field, replaces addr_string_p.
1980 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1981 'addr_string'.
1982 (parse_breakpoint_sals): Likewise.
1983 (do_captured_parse_breakpoint): Update.
1984 (create_breakpoint): Use struct linespec_result.
1985 (until_break_command): Update.
1986 (breakpoint_re_set_one): Update.
1987 (decode_line_spec_1): Update.
1988 * linespec.h (struct linespec_result): New.
1989 (init_linespec_result): Declare.
1990
788c8b10
PA
19912011-03-23 Pedro Alves <pedro@codesourcery.com>
1992
1993 * regcache.c (regcache_raw_read): If the target didn't supply a
1994 given raw register, mark it as unavailable.
1995
0ba1096a
KT
19962011-03-23 Kai Tietz <ktietz@redhat.com>
1997
1998 * breakpoint.c (clear_command): Use filename_cmp
1999 instead of strcmp for comparison.
2000 * buildsym.c (watch_main_source_file_lossage): Likewise.
2001 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2002 checking just for slash.
2003 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2004 strrchr and filename_cmp instead of strcmp for filenames.
2005 (add_old_header_file): Use filename_cmp
2006 instead of strcmp for comparison.
2007 * exec.c (exec_set_section_address): Likewise.
2008 * macrotab.c (macro_lookup_inclusion): Likewise.
2009 (macro_lookup_inclusion): Likewise.
2010 * elfread.c (_initialize_elfread): Likewise.
2011 (elfstab_offset_sections): Likewise.
2012 (elfstab_offset_sections): Use lbasename instead of
2013 strrchr.
2014 * mdebugread.c (parse_partial_symbols): Likewise.
2015 (arse_partial_symbols): Use filename_(n)cmp instead of
2016 str(n)cmp for comparison.
2017 * minsyms.c (lookup_minimal_symbol): Likewise.
2018 * psymtab.c (read_psymtabs_with_filename): Likewise.
2019 * solib.c (solib_read_symbols): Likewise.
2020 (reload_shared_libraries_1): Likewise.
2021 * symmisc.c (maintenance_print_symbols): Likewise.
2022 * symfile.c (separate_debug_file_exists): Likewise.
2023 (reread_symbols): Likewise.
2024 (find_separate_debug_file_by_debuglink): Likewise.
2025 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2026 * source.c (add_path): Likewise.
2027 * symtab.c (filename_seen): Likewise.
2028 (file_matches): Likewise.
2029 (print_symbol_info): Likewise.
2030 (maybe_add_partial_symtab_filename): Likewise.
2031 (make_source_files_completion_list): Likewise.
2032 * xml-syscall.c (init_sysinfo): Likewise.
2033 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2034 IS_DIR_SEPARATOR for checking for trailing path separator.
2035
dd90784c
JK
20362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2039 label abort_expression.
2040 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2041 DWARF_VALUE_OPTIMIZED_OUT.
2042
3167638f
JK
20432011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2044
2045 Code cleanup.
2046 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2047 to linkage_name. Invert its value. Update the function comment.
2048 (c_type_print_varspec_suffix): Invert it at the caller.
2049 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2050
ce406537
PA
20512011-03-22 Pedro Alves <pedro@codesourcery.com>
2052
2053 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2054 errors when reading the `stop_pc'.
2055 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2056 get_frame_pc.
2057
da5d4055
PM
20582011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2059
2060 * NEWS: Document gdb.Write stream keyword.
2061
29e0eb9c
JK
20622011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 Revert:
2065 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2066 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2067 (dwarf2_add_field): Fix new_field->accessibility for
2068 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2069
05775840
PM
20702011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2071
f33edef8 2072 PR python/12183
05775840
PM
2073
2074 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2075 other error classes. Do not print stack trace.
2076
a0cb7835
JK
20772011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2080 (dwarf2_add_field): Fix new_field->accessibility for
2081 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2082
d19f7eee
UW
20832011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2084
2085 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2086 encountering a load via a non-SP register.
2087
4a2fbb50
UW
20882011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2089
2090 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2091 field in returned unwinder.
2092
3489610d
JB
20932012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2094
2095 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2096
8c1a34e7
JB
20972012-03-21 Joel Brobecker <brobecker@adacore.com>
2098
2099 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2100 of xmalloc.
2101
8fbca658
PA
21022012-03-18 Pedro Alves <pedro@codesourcery.com>
2103
2104 * frame.c (frame_unwind_register): Throw an error if unwinding the
2105 register failed.
2106 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2107 an unwind stop reason.
2108 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2109 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2110 UNWIND_UNAVAILABLE>: New.
2111 * inline-frame.c (inline_frame_unwind): Install
2112 default_frame_unwind_stop_reason.
2113 * frame-unwind.c: Include "exceptions.h".
2114 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2115 (default_frame_unwind_stop_reason): New.
2116 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2117 (default_frame_unwind_stop_reason): Declare.
2118 (struct frame_unwind) <stop_reason>: New function pointer.
2119
2120 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2121 * dwarf2-frame.c: Include exceptions.h.
2122 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2123 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2124 computing the CFA. If such an error was thrown, set
2125 unavailable_retaddr.
2126 (dwarf2_frame_unwind_stop_reason): New.
2127 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2128 unavailable.
2129 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2130 (dwarf2_signal_frame_unwind): Ditto.
2131
2132 * amd64-tdep.c: Include "exceptions.h".
2133 (struct amd64_frame_cache): New field "base_p".
2134 (amd64_init_frame_cache): Clear it.
2135 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2136 Avoid reading registers with functions that throw if the register
2137 is not necessary to compute the frame base.
2138 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2139 swallowing NOT_AVAILABLE_ERROR.
2140 (amd64_frame_unwind_stop_reason): New.
2141 (amd64_frame_this_id): Don't build a frame id if the frame base
2142 was unavailable.
2143 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2144 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2145 base_p if the frame base was computable.
2146 (amd64_sigtramp_frame_unwind_stop_reason): New.
2147 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2148 frame base was unavailable.
2149 (amd64_sigtramp_frame_unwind): Install
2150 amd64_sigtramp_frame_unwind_stop_reason.
2151 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2152 base_p if the frame base was computable.
2153 (amd64_epilogue_frame_unwind_stop_reason): New.
2154 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2155 frame base was unavailable.
2156 (amd64_epilogue_frame_unwind): Install
2157 amd64_epilogue_frame_unwind_stop_reason.
2158 * i386-tdep.c: Include "exceptions.h".
2159 (struct i386_frame_cache): New field "base_p".
2160 (i386_init_frame_cache): Clear it.
2161 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2162 Avoid reading registers with functions that throw if the register
2163 is not necessary to compute the frame base.
2164 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2165 swallowing NOT_AVAILABLE_ERROR.
2166 (i386_frame_unwind_stop_reason): New.
2167 (i386_frame_this_id): Don't build a frame id if the frame base was
2168 unavailable.
2169 (i386_frame_prev_register): Handle unavailable SP.
2170 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2171 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2172 base_p if the frame base was computable.
2173 (i386_epilogue_frame_unwind_stop_reason): New.
2174 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2175 base was unavailable.
2176 (i386_epilogue_frame_unwind): Install
2177 i386_epilogue_frame_unwind_stop_reason.
2178 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2179 base_p if the frame base was computable.
2180 (i386_sigtramp_frame_unwind_stop_reason): New.
2181 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2182 base was unavailable.
2183 (i386_sigtramp_frame_unwind): Install
2184 i386_sigtramp_frame_unwind_stop_reason.
2185 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2186 type's size, not the register's.
2187 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2188
2189 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2190 default_frame_unwind_stop_reason.
2191 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2192 (alpha_heuristic_frame_unwind): Ditto.
2193 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2194 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2195 * avr-tdep.c (avr_frame_unwind): Ditto.
2196 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2197 Ditto.
2198 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2199 * frv-tdep.c (frv_frame_unwind): Ditto.
2200 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2201 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2202 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2203 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2204 (hppa_stub_frame_unwind): Ditto.
2205 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2206 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2207 (ia64_libunwind_frame_unwind)
2208 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2209 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2210 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2211 * m32c-tdep.c (m32c_unwind): Ditto.
2212 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2213 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2214 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2215 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2216 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2217 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2218 * mep-tdep.c (mep_frame_unwind): Ditto.
2219 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2220 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2221 (mips_stub_frame_unwind): Ditto.
2222 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2223 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2224 * mt-tdep.c (mt_frame_unwind): Ditto.
2225 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2226 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2227 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2228 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2229 (s390_sigtramp_frame_unwind): Ditto.
2230 * score-tdep.c (score_prologue_unwind): Ditto.
2231 * sh-tdep.c (sh_frame_unwind): Ditto.
2232 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2233 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2234 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2235 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2236 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2237 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2238 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2239 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2240 (sparc64obsd_trapframe_unwind): Ditto.
2241 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2242 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2243 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2244 * v850-tdep.c (v850_frame_unwind): Ditto.
2245 * vax-tdep.c (vax_frame_unwind): Ditto.
2246 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2247 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2248 * xtensa-tdep.c (xtensa_unwind): Ditto.
2249
f23d1b92
PA
22502011-03-18 Pedro Alves <pedro@codesourcery.com>
2251
2252 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2253 there's always a frame. Use get_frame_pc_if_available instead of
2254 get_frame_pc, and if there's no PC available, don't look up a
2255 symtab.
2256
1d4f5741
PA
22572011-03-18 Pedro Alves <pedro@codesourcery.com>
2258
2259 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2260 unavailable PC.
2261
dba09041
PA
22622011-03-18 Pedro Alves <pedro@codesourcery.com>
2263
2264 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2265 gracefully.
2266
9a26e44c
PA
22672011-03-18 Pedro Alves <pedro@codesourcery.com>
2268
2269 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2270 * frame.c (frame_unwind_caller_pc_if_available): New.
2271 * stack.c (frame_info): Handle unavailable PC.
2272
22732011-03-18 Pedro Alves <pedro@codesourcery.com>
2274
2275 * frame.c (frame_unwind_pc): Rename to ...
2276 (frame_unwind_pc_if_available): ... this. New `pc' output
2277 parameter. Change return type to int. Gracefully handle
2278 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2279 happened, or 1 otherwise.
2280 (frame_unwind_pc): Reimplement on top of
2281 frame_unwind_pc_if_available.
2282 (get_frame_func): Rename to ...
2283 (get_frame_func_if_available): New `pc' output parameter. Change
2284 return type to int. Gracefully handle the PC not being available.
2285 (get_frame_func): Reimplement on top of
2286 get_frame_func_if_available.
2287 (select_frame): Handle the PC being unavailable.
2288 (get_prev_frame): Handle the PC being unavailable.
2289 (get_frame_pc_if_available): New.
2290 (get_frame_address_in_block_if_available): New.
2291 (find_frame_sal): Handle the frame PC not being available.
2292 * frame.h (get_frame_pc_if_available): Declare.
2293 (get_frame_address_in_block_if_available): Declare.
2294 (get_frame_func_if_available): Declare.
2295 * stack.c (print_frame_info): Handle the PC being unavailable.
2296 (find_frame_funname): Ditto.
2297 (print_frame): Handle the PC being unavailable.
2298 (get_frame_language): Ditto.
2299 * blockframe.c (get_frame_block): Ditto.
2300 * macroscope.c (default_macro_scope): Ditto.
2301 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2302
23032011-03-18 Pedro Alves <pedro@codesourcery.com>
2304
2305 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2306 NOT_AVAILABLE_ERROR when evaluating the location expression.
2307
23082011-03-18 Pedro Alves <pedro@codesourcery.com>
2309
2310 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2311 returning that the register piece is unavailable/optimized out.
2312 (write_pieced_value): Handle get_frame_register_bytes returning
2313 that the register piece is unavailable/optimized out when doing a
2314 read-modify write of a bitfield.
2315 * findvar.c (value_from_register): Handle get_frame_register_bytes
2316 returning that the register piece is unavailable/optimized out.
2317 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2318 and `unavailablep'. Throw error on bad debug info. Use
2319 frame_register instead of frame_register_read, to fill in the new
2320 arguments.
2321 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2322 and `unavailablep'.
2323 * valops.c: (value_assign): Adjust, and handle
2324 get_frame_register_bytes failing.
2325 * spu-tdep.c: Include exceptions.h.
2326 (spu_software_single_step): Adjust, and handle
2327 get_frame_register_bytes failing.
2328 (spu_get_longjmp_target): Ditto.
2329 * gdbarch.sh (register_to_value): Change to return int. New
2330 parameters `optimizedp' and `unavailablep'.
2331 * gdbarch.h, gdbarch.c: Regenerate.
2332 * i386-tdep.c (i386_register_to_value): Adjust to new
2333 gdbarch_register_to_value interface.
2334 * i387-tdep.c (i387_register_to_value): Ditto.
2335 * i387-tdep.h (i387_register_to_value): Ditto.
2336 * alpha-tdep.c (alpha_register_to_value): Ditto.
2337 * ia64-tdep.c (ia64_register_to_value): Ditto.
2338 * m68k-tdep.c (m68k_register_to_value): Ditto.
2339 * mips-tdep.c (mips_register_to_value): Ditto.
2340 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2341
0fdb4f18
PA
23422011-03-18 Pedro Alves <pedro@codesourcery.com>
2343
2344 * findvar.c (value_of_register): Mark the value as unavailable, if
2345 the register is unavailable.
2346 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2347 (frame_register): New `unavailablep' parameter.
2348 (frame_register_read): Update comment.
2349 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2350 Set it if the register is unavailable. If the register is
2351 unavailable, clear the output buffer.
2352 (frame_register): New `unavailablep' parameter. Pass it down.
2353 (frame_unwind_register): Adjust.
2354 (put_frame_register): Adjust.
2355 (frame_register_read): Adjust. Also return false if the register
2356 is not available.
2357 (frame_register_unwind_location): Adjust.
2358 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2359 is unavailable, mark the value accordingly.
2360 * stack.c (frame_info): Handle unavailable registers.
2361
e69aa73e
PA
23622011-03-18 Pedro Alves <pedro@codesourcery.com>
2363
2364 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2365 simplify, using regcache_cooked_read.
2366
05d1431c
PA
23672011-03-18 Pedro Alves <pedro@codesourcery.com>
2368
2369 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2370 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2371 (regcache_raw_read_unsigned, regcache_raw_read_part)
2372 (regcache_cooked_read, regcache_cooked_read_signed)
2373 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2374 (regcache_cooked_read_ftype): Change return to enum
2375 register_status.
2376 * regcache.c: Include exceptions.h
2377 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2378 (do_cooked_read): Change return to enum register_status. Always
2379 forward to regcache_cooked_read.
2380 (regcache_raw_read): Change return to enum register_status. If
2381 the register is not REG_VALID, memset the buffer. Return the
2382 register's status.
2383 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2384 return the register's status.
2385 (regcache_raw_read_unsigned): Ditto.
2386 (regcache_cooked_read): Change return to enum register_status.
2387 Assert that with read-only regcaches, the register's status must
2388 be known. If the regcache is read-only, and the register is not
2389 REG_VALID, memset the buffer. Return the register's status.
2390 (regcache_cooked_read_signed): Change return to enum
2391 register_status. Handle non-REG_VALID registers and return the
2392 register's status.
2393 (regcache_cooked_read_unsigned): Change return to enum
2394 register_status. Handle non-REG_VALID registers and return the
2395 register's status.
2396 (regcache_xfer_part, regcache_raw_read_part)
2397 (regcache_cooked_read_part): Change return to enum
2398 register_status. Return the register's status.
2399 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2400 unavailable.
2401 (regcache_dump): Handle unavailable cooked registers.
2402 * frame.c (do_frame_register_read): Adjust interface to match
2403 regcache_cooked_read_ftype.
2404 * gdbarch.sh (pseudo_register_read): Change return to enum
2405 register_status.
2406 * gdbarch.h, gdbarch.c: Regenerate.
2407
2408 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2409 register_status.
2410 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2411 register_status. If reading a raw register indicates the raw
2412 register is not valid, return the raw register's status,
2413 otherwise, return REG_VALID.
2414 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2415 register_status. Handle non-REG_VALID raw registers and return
2416 the register's status.
2417 * arm-tdep.c (arm_neon_quad_read)
2418 (arm_pseudo_read): Change return to enum register_status. Handle
2419 non-REG_VALID raw registers and return the register's status.
2420 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2421 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2422 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2423 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2424 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2425 register_status.
2426 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2427 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2428 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2429 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2430 (m32c_pseudo_register_read): Change return to enum
2431 register_status. Adjust.
2432 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2433 enum register_status. Return the register's status.
2434 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2435 register_status. Return the register's status.
2436 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2437 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2438 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2439 * rs6000-tdep.c (move_ev_register_func): New typedef.
2440 (e500_move_ev_register): Use it. Change return to enum
2441 register_status. Return the register's status.
2442 (do_regcache_raw_read): New function.
2443 (do_regcache_raw_write): New function.
2444 (e500_pseudo_register_read): Change return to enum
2445 register_status. Return the register's status. Use
2446 do_regcache_raw_read.
2447 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2448 (dfp_pseudo_register_read): Change return to enum register_status.
2449 Return the register's status.
2450 (vsx_pseudo_register_read): Ditto.
2451 (efpr_pseudo_register_read): Ditto.
2452 (rs6000_pseudo_register_read): Ditto.
2453 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2454 register_status. Return the register's status.
2455 * sh64-tdep.c (pseudo_register_read_portions): New function.
2456 (sh64_pseudo_register_read): Change return to enum
2457 register_status. Use pseudo_register_read_portions. Return the
2458 register's status.
2459 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2460 register_status. Return the register's status.
2461 * sh-tdep.c (pseudo_register_read_portions): New function.
2462 (sh_pseudo_register_read): Change return to enum register_status.
2463 Use pseudo_register_read_portions. Return the register's status.
2464 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2465 enum register_status. Return the register's status.
2466 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2467 * spu-tdep.c (spu_pseudo_register_read_spu)
2468 (spu_pseudo_register_read): Ditto.
2469 * xtensa-tdep.c (xtensa_register_read_masked)
2470 (xtensa_pseudo_register_read): Ditto.
2471 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2472
e10abd8f
PM
24732011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2474
2475 * python/py-value.c (valpy_getitem): Fix formatting of error function
2476 call.
2477
7ea6d463
PM
24782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2479
2480 ARI fixes: Add missing internationalization markups throughout
2481 C source files.
2482 * darwin-nat-info.c: Ditto.
2483 * record.c: Ditto.
2484 * remote.c: Ditto.
2485 * mi/mi-main.c: Ditto.
2486
001083c6
PM
24872011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2488
2489 ARI fixes: Add missing internationalization markups throughout
2490 yacc files.
2491 * c-exp.y: Ditto.
2492 * cp-name-parser.y: Ditto.
2493 * f-exp.y: Ditto.
2494 * m2-exp.y: Ditto.
2495 * objc-exp.y: Ditto.
2496 * p-exp.y: Ditto.
2497
4f1cdeec
PM
24982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2499
2500 ARI fixes: Messages should have no trailing new lines.
2501 * darwin-nat.c (mach_check_error): Remove trailing new line from
2502 warning function call message.
2503 * record.c (bfdcore_read): Idem for error call.
2504
28e698f1
PM
25052011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2506
2507 * common/signals.c (target_signal_from_host): Add _ markup to error
2508 function call message.
2509 (target_signal_to_host): Add _ markup and remove trailing new line
2510 from warning call message.
2511 (target_signal_from_command): Add _ markup to error function call
2512 message.
2513
99c3dc11
PM
25142011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2515
f33edef8 2516 PR python/12149
99c3dc11
PM
2517
2518 * python/python.c (gdbpy_write): Accept a stream argument and
2519 operate to the appropriate stream.
2520 (gdbpy_flush): Likewise.
2521 (_initialize_python): Add stream constants.
2522 (finish_python_initialization): Add GdbOutputErrorFile class.
2523
c20800be
KY
25242011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2525
2526 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2527
f4a1794a
KY
25282011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2529
2530 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
2531 to store_signed_integer. Add debug message when relocating CALL
2532 instructions. Fix formatting of debug message.
2533 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 2534
d4862372
JB
25352011-03-17 Joel Brobecker <brobecker@gnat.com>
2536
2537 * target.h (struct target_ops): Remove to_lookup_symbol field.
2538 (target_lookup_symbol): Delete macro.
2539 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2540 (update_current_target, setup_target_debug): Remove handling
2541 of to_lookup_symbol target_ops field.
2542 * ada-tasks.c (get_known_tasks_addr): Remove use of
2543 target_lookup_symbol.
2544 * coffread.c (coff_symtab_read): Likewise.
2545 * dbxread.c (read_dbx_symtab): Ditto.
2546
d645e32e
JB
25472011-03-17 Joel Brobecker <brobecker@gnat.com>
2548
2549 PR gdb/12116:
2550 * configure.ac: Add getthrds declaration check.
2551 * configure, config.in: Regenerate.
2552 * aix-thread.c (getthrds): Declare only if not already declared
2553 in procinfo.h. More declaration out of get_signaled_thread to
2554 global scope.
2555
29703da4
PM
25562011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2557
2558 * python/py-symtab.c: Populate symtab_object_methods,
2559 sal_object_methods.
2560 (stpy_is_valid): New function.
2561 (salpy_is_valid): Ditto.
2562 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2563 (sympy_is_valid): New function.
2564 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2565 (objfpy_is_valid): New function.
2566 * python/py-inferior.c: Populate inferior_object_methods.
2567 (infpy_is_valid): New function.
2568 * python/py-infthread.c: Populate thread_object_methods.
2569 (thpy_is_valid): New function.
2570 * python/py-block.c: Declare block_object_methods. Populate. Declare
2571 block_iterator_object_methods. Populate.
2572 (blpy_is_valid): New function.
2573 (blpy_iter_is_valid): Ditto.
2574
c00f8484
KS
25752011-03-16 Keith Seitz <keiths@redhat.com>
2576
2577 * linespec.c (find_methods): Canonicalize NAME before looking
2578 up the symbol.
2579 (name_end): New function.
2580 (keep_name_info): New function.
2581 (decode_line_1): Use keep_name_info.
2582 (decode_compound): Likewise.
2583 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2584 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2585
2586 PR c++/12273
2587 * linespec.c (locate_first_half): Keep overload information, too.
2588 (decode_compound): Use a string to represent break characters
2589 to escape the loop.
2590 If P points to a break character, do not increment it.
2591 For C++ and Java, keep overload information and relevant keywords.
2592 If we cannot find a symbol, search the minimal symbols.
2593
2594 PR c++/11734
2595 * linespec.c (decode_compound): Rename SAVED_ARG to
2596 THE_REAL_SAVED_ARG.
2597 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2598 single-quotes.
2599 Pass a valid block to lookup_symbol.
2600 (lookup_prefix_sym): Likewise.
2601 (find_method): Construct search name based on SYM_CLASS instead
2602 of SAVED_ARG.
2603 * psymtab.c (lookup_partial_symbol): Add language parameter.
2604 (lookup_symbol_aux_psymtabs): Likewise.
2605 Don't assume that the psymtab we found was the right one. Search
2606 for the desired symbol in the symtab to be certain.
2607 (psymtab_search_name): New function.
2608 (lookup_partial_symbol): Use psymtab_search_name.
2609 Add language parameter.
2610 (read_symtabs_for_function): Add language parameter and pass to
2611 lookup_partial_symbol.
2612 (find_symbol_file_from_partial): Likewise.
2613
c91513d8
PP
26142011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2615
2616 PR gdb/12528
2617 * dwarf2read.c (noop_record_line): New function.
2618 (dwarf_decode_lines): Ignore line tables for GCd functions.
2619
b37520b6
PM
26202011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2621
2622 Fix ARI warnings about new lines at the end of messages, which
2623 are unneeded as there is a new line added at the end of the message
2624 automatically.
2625 * darwin-nat.c (darwin_stop_inferior): Ditto.
2626 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2627 * dfp.c (decimal_to_number): Ditto.
2628 * exec.c (print_section_info): Ditto.
2629 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2630 * osdata.c (get_osdata): Ditto.
2631 * record.c (bfdcore_write): Ditto.
2632 * remote-mips.c (mips_readchar): Ditto.
2633 * remote.c (read_ptid): Ditto.
2634 * ser-mingw.c (ser_windows_raw): Ditto.
2635 * tracepoint.c (add_local_symbols): Ditto.
2636 * windows-nat.c (fake_create_process): Ditto.
2637
b08ee6a2
TT
26382011-03-16 Tom Tromey <tromey@redhat.com>
2639
2640 * tracepoint.c (stop_tracing): Don't declare.
2641 * event-top.c (after_char_processing_hook): Add `(void)'.
2642
9a6f1302
PM
26432011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2644
2645 * NEWS: Add Parameter sub-classing description.
2646
7ceb86b1
KT
26472011-03-16 Kai Tietz <ktietz@redhat.com>
2648
2649 * MAINTAINERS: Update my e-mail address.
2650
efeff6cf
AT
26512011-03-15 Andreas Tobler <andreast@fgznet.ch>
2652
2653 * MAINTAINERS: Add myself for write after approval privileges.
2654
681c238c
MS
26552011-03-15 Michael Snyder <msnyder@vmware.com>
2656
f3df5b08
MS
2657 * frame.c (find_frame_sal): Assert sym is not null.
2658
13f6513c
MS
2659 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2660
50412521
MS
2661 * objc-lang.c (selectors_info): Check strchr for null result.
2662
681c238c
MS
2663 * stabsread.c (define_symbol): Guard against bad stabstring input.
2664
6ced1581
PM
26652011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2666
2667 Remove trailing spaces and tabulations from pascal language
2668 support sources.
2669 p-exp.y: Ditto.
2670 p-lang.c: Ditto.
2671 p-lang.h: Ditto.
2672 p-valprint.c: Ditto.
2673
9373cf26
JK
26742011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2677 than LOW. Comment it.
2678 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2679 HIGHPC not strictly higher than LOWPC.
2680
9a1edae6
PM
26812011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2682
2683 Fix formatting of function declarations returning a pointer in
2684 previous commit.
2685 * varobj.c (varobj_add_child): Ditto.
2686 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2687 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2688
24e9cda0
UW
26892011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2690
2691 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2692 for the "generic" vector ABI used with GCC 4.3 and later.
2693 (ppc64_sysv_abi_return_value): Likewise.
2694
26952011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
2696
2697 * infcall.c (call_function_by_hand): Function return value is
2698 always a non_lval, even when using struct_return.
2699
c9174737
PA
27002011-03-15 Pedro Alves <pedro@codesourcery.com>
2701
2702 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2703 (map_display_numbers): New.
2704 (do_delete_display): New.
2705 (undisplay_command): Use map_display_numbers.
2706 (do_enable_disable_display): New.
2707 (enable_disable_display_command): New function.
2708 (enable_display): Delete.
2709 (enable_display_command): New.
2710 (disable_display_command): Reimplement.
2711 (_initialize_printcmd): Adjust "enable display" command to use
2712 `enable_display_command' as callback.
2713
350c6c65
PM
27142011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2715
2716 * NEWS: Add Python breakpoint 'stop' operation.
2717
824446ad
PM
27182011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2719
2720 * NEWS: Delete duplicate entry. Fix typo.
2721
2021ad3a
PM
27222011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2723
2724 Fix ARI warning about function names in first column.
2725 Put prototype declaration on same line as return type.
2726 * objc-exp.y: Ditto.
2727 * p-exp.y: Ditto.
2728 * python/py-stopevent.h: Ditto.
2729 For long function names, split parameters to
2730 allow function name on same line as return type.
2731 * solib-pa64.c: Ditto.
2732 * varobj.c: Ditto.
2733 * varobj.h: Ditto.
2734 For long function declaration, use single line.
2735 * hppa-tdep.h: Ditto.
2736 * inferior.h: Ditto.
2737
7371cf6d
PM
27382011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2739
2740 * python/python.h: Declare gdbpy_should_stop and
2741 gdbpy_breakpoint_has_py_cond.
2742 * python/python.c: Add python.h to includes. Remove python.h from
2743 HAVE_PYTHON definition
2744 (gdbpy_should_stop): New dummy function.
2745 (gdbpy_breakpoint_has_py_cond): New dummy function.
2746 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2747 sub-classing capabilities.
2748 (gdbpy_should_stop): New function.
2749 (gdbpy_breakpoint_has_py_cond): New function.
2750 (local_setattro): New function.
2751 * breakpoint.c (condition_command): Add check for Python 'stop'
2752 operation.
2753 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2754 operation function as part of stop/continue tests.
2755
37b50a69
TT
27562011-03-14 Tom Tromey <tromey@redhat.com>
2757
2758 PR gdb/12576:
2759 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2760 (needs_frame_dwarf_call): Likewise.
2761
eeae04df
PM
27622011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2763
2764 Fix ARI warning about functions without parameters that do not
2765 use (void).
2766 * breakpoint.c (all_tracepoints): Replace () by (void).
2767 * f-exp.y (match_string_literal): Ditto.
2768 (yylex): Ditto.
2769 * m2-exp.y (yylex): Ditto.
2770 * mep-tdep.c (current_me_module): Ditto.
2771 (current_options): Ditto.
2772 (current_cop_data_bus_width): Ditto.
2773 (current_cr_names): Ditto.
2774 (current_cr_is_float): Ditto.
2775 (current_ccr_names): Ditto.
2776 * objc-exp.y (yylex): Ditto.
2777 * p-exp.y (yylex): Ditto.
2778 * remote.c (send_interrupt_sequence): Ditto.
2779 * tracepoint.c (current_trace_status): Ditto.
2780 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2781 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2782
6dc3565d
MS
27832011-03-11 Michael Snyder <msnyder@vmware.com>
2784
1427fe5e
MS
2785 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2786 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2787 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2788 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2789 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2790
60bc018f
MS
2791 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2792 (delete_async_event_handler): Ditto.
2793
f3be5b64
MS
2794 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2795
4c2d5724
MS
2796 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2797
6dc3565d
MS
2798 * top.c (set_verbose): Assert showcmd was found.
2799
4e6ca6d5
MG
28002011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2801
2802 * xtensa-tdep.c (warning_once): Correct style issues.
2803
815a83e4
YQ
28042011-03-11 Yao Qi <yao@codesourcery.com>
2805
2806 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2807
f2eb0bc8
AS
28082011-03-11 Andreas Schwab <schwab@redhat.com>
2809
2810 * common/aclocal.m4: Remove.
2811
b801de47
MG
28122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2813
2814 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2815 (xtensa_write_register, xtensa_read_register): Likewise.
2816 (xtensa_hextochar): Removed.
2817 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2818
dbab50de
MG
28192011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2820
2821 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 2822 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
2823 (xtensa_alloc_frame_cache): Add initialization for new fields.
2824 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2825 (warning_once): New function.
2826 (xtensa_insn_kind): New item c0opc_and.
2827 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
2828 (call0_track_op): Change arguments. New local variable litbase.
2829 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2830 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2831 in the prologue.
dbab50de 2832 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 2833 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
2834 Add the variety of updates to handle extended prologues, which now can
2835 conduct dynamic stack adjustments.
2836 (call0_frame_cache): Likewise.
2837 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2838 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2839
b2c04452
MS
28402011-03-10 Michael Snyder <msnyder@vmware.com>
2841
f8f67713
MS
2842 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2843 (cmd_qtframe): Ditto.
2844 (cmd_qtbuffer): Ditto.
2845 (cmd_bigqtbuffer): Ditto.
2846
197f0a60
TT
28472011-03-10 Tom Tromey <tromey@redhat.com>
2848
2849 * tracepoint.c (trace_actions_command): Update.
2850 * thread.c (thread_apply_command): Update.
2851 * reverse.c (delete_bookmark_command): Update.
2852 (bookmarks_info): Update.
2853 * printcmd.c (undisplay_command): Update.
2854 * memattr.c (mem_enable_command): Update.
2855 (mem_disable_command): Update.
2856 (mem_delete_command): Update.
2857 * inferior.c (detach_inferior_command): Update.
2858 (kill_inferior_command): Update.
2859 (remove_inferior_command): Update.
2860 * cli/cli-utils.h (struct get_number_or_range_state): New.
2861 (init_number_or_range): Declare.
2862 (get_number_or_range): Update.
2863 * cli/cli-utils.c (init_number_or_range): New function.
2864 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2865 static variables.
2866 (number_is_in_list): Update.
2867 * breakpoint.h (get_tracepoint_by_number): Update.
2868 * breakpoint.c (map_breakpoint_numbers): Update for change to
2869 get_number_or_range.
2870 (find_location_by_number): Use get_number, not
2871 get_number_or_range.
2872 (trace_pass_set_count): New function.
2873 (trace_pass_command): Update for change to get_number_or_range.
2874 Rework loop logic.
2875 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2876 'state' parameter.
2877
ecec24e6
PM
28782011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2879
2880 * python/py-param.c (add_setshow_generic): Add set/show callback
2881 parameters. Register Python object context.
2882 (get_show_value): New function.
2883 (get_set_value): New function.
2884 (call_doc_function): New function.
2885 (get_doc_string): Move behind get_show_value/get_set_value.
2886
6d6c6b1f
JK
28872011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2888
2889 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2890
68d6df83
MG
28912011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2892
dbab50de 2893 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
2894 (xtensa_write_register): Likewise.
2895 (xtensa_hextochar): Add comment and update to match coding conventions.
2896 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2897 (execute_l32e, execute_s32e, execute_code): Update comments.
2898 (xtensa_exception_handler_t): Update to match coding conventions.
2899 (xtensa_insn_kind): Likewise.
2900
85c9d6a6
MS
29012011-03-09 Michael Snyder <msnyder@vmware.com>
2902
2903 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2904
91495617
PA
29052011-03-09 Pedro Alves <pedro@codesourcery.com>
2906
2907 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2908
eb8c0621
TT
29092011-03-09 Tom Tromey <tromey@redhat.com>
2910
2911 * thread.c (restore_selected_frame): Handle frame_level == -1.
2912 (make_cleanup_restore_current_thread): Use
2913 get_selected_frame_if_set.
2914 * frame.h (get_selected_frame_if_set): Declare.
2915 * frame.c (get_selected_frame_if_set): New function.
2916
9f37bbcc
PA
29172011-03-09 Pedro Alves <pedro@codesourcery.com>
2918
2919 * cli/cli-cmds.c (shell_escape): Use lbasename.
2920 * coffread.c (coff_start_symtab): Constify parameter.
2921 (complete_symtab): Constify `name' parameter.
2922 (coff_symtab_read): Constify `filestring' local.
2923 (coff_getfilename): Constify return and `result' local.
2924 Use lbasename.
2925 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2926 * linux-fork.c (info_checkpoints_command): Use lbasename.
2927 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2928 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2929 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2930 * procfs.c (procfs_make_note_section): Use lbasename.
2931 * tui/tui-io.c (printable_part): Constity return and parameter.
2932 Use lbasename.
2933 (print_filename): Constify parameters, and local `s'.
2934 (tui_rl_display_match_list): Constify local `temp'.
2935
f8de3c55
JK
29362011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2937
2938 Revert:
2939 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 Fix DWARF-3+ DW_AT_accessibility default assumption.
2941 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2942 cu->header.version >= 3.
2943
d9837b00
YQ
29442011-03-09 Yao Qi <yao@codesourcery.com>
2945
2946 * common/Makefile.in: Remove.
2947 * common/configure: Remove.
2948 * common/configure.ac: Remove.
2949
e637a4f5
YQ
29502011-03-09 Yao Qi <yao@codesourcery.com>
2951
2952 Revert:
2953 2011-02-11 Yao Qi <yao@codesourcery.com>
2954
2955 * common/Makefile.in: Add copyright header.
2956
2957 2011-02-11 Yao Qi <yao@codesourcery.com>
2958
2959 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2960 libcommon.a.
2961 * configure.ac: Add common to sub dir.
2962 * configure: Regenerate.
2963
f976a05d
MG
29642011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2965
2966 * xtensa-tdep.c (call0_ret): New function.
2967 (xtensa_skip_prologue): Speed up analysis.
2968
57041825
MG
29692011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2970
2971 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2972 while executing MI command -data-list-changed-registers.
2973
08b9c608
MG
29742011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2975
2976 * xtensa-tdep.c (xtensa_read_register): New function.
2977 (xtensa_write_register): New function.
2978 (xtensa_find_register_by_name): New function.
2979 (xtensa_windowed_frame_cache): Update comments in type description.
2980 (xtensa_frame_cache): Likewise.
2981 (xtensa_window_interrupt_insn): New function.
2982 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2983 (xtensa_insn_kind): Add new instructions.
2984 (rwx_special_register): New function.
2985 (call0_classify_opcode): Add new instructions to the analysis.
2986 (a0_saved, a7_saved, a11_saved): New variables.
2987 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2988 (execute_l32e): New function.
2989 (execute_s32e): New function.
2990 (xtensa_exception_handler_t): New type.
2991 (execute_code): New function.
2992 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2993 analysis for Xtensa Window Exception handlers.
2994
4d1acb11
MG
29952011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2996
98689b25
MG
2997 * xtensa-tdep.c (TX_PS): New.
2998 (windowing_enabled): Update to count for Call0 ABI.
2999 (xtensa_hextochar): New.
3000 (xtensa_init_reggroups): Make algorithm generic.
3001 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3002
30032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3004
3005 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 3006
d3f323f3
MS
30072011-03-08 Michael Snyder <msnyder@vmware.com>
3008
3dcabaa8
MS
3009 * i386-tdep.c (i386_follow_jump): Check return value of
3010 target_read_memory.
3011 (i386_analyze_struct_return): Ditto.
3012 (i386_skip_probe): Ditto.
3013 (i386_match_insn): Ditto.
3014 (i386_skip_noop): Ditto.
3015 (i386_analyze_frame_setup): Ditto.
3016 (i386_analyze_register_saves): Ditto.
3017 (i386_skip_prologue): Ditto.
3018 (i386_skip_main_prologue): Ditto.
3019
13b3fd9b
MS
3020 * target.c (read_whatever_is_readable): Fix memory leak.
3021
d3f323f3
MS
3022 * i386-tdep.c (i386_process_record): Document fall through.
3023
421d5c74
JK
30242011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3025
3026 Fix DWARF-3+ DW_AT_accessibility default assumption.
3027 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3028 cu->header.version >= 3.
3029
63154eca
PA
30302011-03-08 Pedro Alves <pedro@codesourcery.com>
3031
3032 * remote.c (remote_check_symbols): Skip if the target has no
3033 execution.
3034
f1a507a1
JB
30352011-03-08 Joel Brobecker <brobecker@adacore.com>
3036
3037 * target.c (read_whatever_is_readable): Reformat comment,
3038 with a minor typo fix. Minor reformatting of the code.
3039
36073a92
YQ
30402011-03-08 Yao Qi <yao@codesourcery.com>
3041
3042 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3043 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3044 Use cached result instead of calling displaced_in_arm_mode again.
3045 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3046 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3047 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3048 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3049 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3050 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3051 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3052 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3053 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3054 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3055 (arm_catch_kernel_helper_return): Likewise.
3056 * gdb/arm-tdep.h : Update function declarations.
3057
d3f323f3 30582011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 3059
e0e40094
MS
3060 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3061
0b2381f5
MS
3062 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3063
0350914a
MS
3064 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3065
69feea6f
MS
3066 * elfread.c (elf_symtab_read): Stop memory leak.
3067
e6040cbd
MS
3068 * main.c (captured_main): Fix memory leak.
3069
052874e8
AS
30702011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3071
3072 * ada-lang.c (compare_names): Call is_name_suffix with string1
3073 instead of string2.
3074
b11896a5
TT
30752011-03-07 Tom Tromey <tromey@redhat.com>
3076
3077 * xcoffread.c (xcoff_sym_fns): Update.
3078 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3079 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3080 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3081 (symbol_file_add_with_addrs_or_offsets): Likewise.
3082 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3083 * somread.c (som_sym_fns): Update.
3084 * psymtab.h (require_partial_symbols): Declare.
3085 * psymtab.c (require_partial_symbols): New function.
3086 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3087 (ALL_OBJFILE_PSYMTABS): Undef.
3088 (ALL_PSYMTABS): Move from psympriv.h.
3089 (lookup_partial_symtab, find_pc_sect_psymtab)
3090 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3091 (find_last_source_symtab_from_partial)
3092 (forget_cached_source_info_partial)
3093 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3094 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3095 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3096 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3097 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3098 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3099 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3100 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3101 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3102 psymtabs.
3103 * mipsread.c (ecoff_sym_fns): Update.
3104 * machoread.c (macho_sym_fns): Update.
3105 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3106 (read_psyms): New function.
3107 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3108 (elf_sym_fns_lazy_psyms): New global.
3109 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3110 dwarf2_build_psymtabs.
3111 * dbxread.c (aout_sym_fns): Update.
3112 * coffread.c (coff_sym_fns): Update.
3113
fda326dd
TT
31142011-03-07 Tom Tromey <tromey@redhat.com>
3115
3116 * infrun.c (print_exited_reason): Include inferior id and pid in
3117 message.
3118
aeaec162
TT
31192011-03-07 Tom Tromey <tromey@redhat.com>
3120
3121 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3122 parameter.
3123 (target_has_execution_1): Update.
3124 (target_has_execution_current): Declare.
3125 (target_has_execution): Call target_has_execution_current.
3126 (default_child_has_execution): Update.
3127 * target.c (default_child_has_execution): Add 'the_ptid'
3128 parameter.
3129 (target_has_execution_1): Likewise.
3130 (target_has_execution_current): New function.
3131 (add_target): Update.
3132 (init_dummy_target): Update.
3133 * remote-m32r-sdi.c (m32r_has_execution): New function.
3134 (init_m32r_ops): Use it.
3135 * record.c (record_core_has_execution): Now static. Add
3136 'the_ptid' parameter.
3137 * inferior.c (have_live_inferiors): Don't save current thread.
3138 Use target_has_execution_1.
3139
08e14083
YQ
31402011-03-07 Yao Qi <yao@codesourcery.com>
3141
3142 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3143
c05d19c5
JB
31442011-03-07 Joel Brobecker <brobecker@adacore.com>
3145
3146 * elfread.c (elf_symtab_read): Minor reformatting.
3147
3e6ef9e4
JB
31482011-03-07 Joel Brobecker <brobecker@adacore.com>
3149
3150 * objc-lang.c (selectors_info): Minor reformatting.
3151
dbb8534f
JB
31522011-03-07 Joel Brobecker <brobecker@adacore.com>
3153
3154 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3155
dd70cc93
JB
31562011-03-07 Joel Brobecker <brobecker@adacore.com>
3157 Michael Snyder <msnyder@vmware.com>
3158
3159 * ada-valprint.c (ada_val_print_array): Move the declaration of
3160 "byte_order" and "elttype" inside the block where these variables
3161 are actually used. Remove some special handling for the case
3162 where "elttype" and "eltlen" are null. Replace by a comment
3163 and a couple of assertion checks.
3164
b27cf2b3
MS
31652011-03-05 Michael Snyder <msnyder@vmware.com>
3166
3167 * source.c (add_path): Replace semicolon at end of block.
3168 * dwarf2expr.c (execute_stack_op): Ditto.
3169
5387a0c6
MF
31702011-03-05 Mike Frysinger <vapier@gentoo.org>
3171
3172 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3173 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3174 (bfin-*-*): Likewise.
3175
e3aa49af
MS
31762011-03-05 Michael Snyder <msnyder@vmware.com>
3177
82ae4854
MS
3178 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3179 * mdebugread.c (parse_symbol): Ditto.
3180 * parse.c (parse_exp_in_context): Ditto.
3181 * source.c (add_path): Ditto.
3182 * utils.c (gnu_debuglink_crc32): Ditto.
3183 * varobj.c (variable_language): Ditto.
3184
e3aa49af
MS
3185 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3186
154f592e
MS
31872011-03-04 Michael Snyder <msnyder@vmware.com>
3188
da3ecdc6
MS
3189 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3190
9cc89665
MS
3191 * symfile.c (simple_overlay_update): Check for null return value
3192 from lookup_minimal_symbol.
3193
154f592e
MS
3194 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3195
63ffa6ee
TJB
31962011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3197
3198 * eval.c (parse_and_eval_address_1): Remove function.
3199 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3200 instead of parse_and_eval_address_1.
3201 * value.h (parse_and_eval_address_1): Remove prototype.
3202
a17d146e
MS
32032011-03-04 Michael Snyder <msnyder@vmware.com>
3204
3205 * remote.c (putpkt_binary): Document that case stmt falls through.
3206
1a6a67de
TJB
32072011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3208
3209 * breakpointc (print_it_typical): Move NULL check from here...
3210 (print_bp_stop_message): ... to here.
3211
488919c4
MS
32122011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3213
3214 * breakpoint.c (enable_command): Use break instead of continue,
3215 and fill in a missing break.
3216 (disable_command): Ditto.
3217
1e182ce8
UW
32182011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3219
3220 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3221 (terminal_save_ours): Remove misleading comment.
3222 (inflow_inferior_data_cleanup): Free ttystate.
3223 (inflow_inferior_exit): Likewise.
3224 (copy_terminal_info): Copy ttystate.
3225
3226 * serial.c (serial_copy_tty_state): New function.
3227 * serial.h (serial_copy_tty_state): Add prototype.
3228 (struct serial_ops): Add copy_tty_state callback.
3229 * ser-base.c (ser_base_copy_tty_state): New function.
3230 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3231 * ser-go32.c (dos_copy_tty_state): New function.
3232 (dos_ops): Install copy_tty_state callback.
3233 * ser-mingw.c (_initialize_ser_windows): Likewise.
3234 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3235 * ser-unix.c (hardwire_copy_tty_state): New function.
3236 (_initialize_ser_hardwire): Install it.
3237
b2c5f112
MS
32382011-03-04 Michael Snyder <msnyder@vmware.com>
3239
2abae994
MS
3240 * breakpoint.c (create_breakpoint): Add missing break statement.
3241
7f5936f9
MS
3242 Reverting this patch:
3243 * infcall.c (call_function_by_hand): Add break statements for lint.
3244
b2c5f112
MS
3245 Reverting this patch:
3246 * cli/cli-script.c (script_from_file): Add break for lint.
3247
42b1321c
MS
32482011-03-04 Michael Snyder <msnyder@vmware.com>
3249
3250 * solib.c (reload_shared_libraries_1): Close memory leak.
3251
3e2a0cee
TT
32522011-03-03 Tom Tromey <tromey@redhat.com>
3253
3254 PR gdb/12538:
3255 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3256 DW_STRING is NULL.
3257
58397cb7
MS
32582011-03-03 Michael Snyder <msnyder@vmware.com>
3259
2e3fd767
MS
3260 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3261 fields of struct 'st' to zero.
3262
58397cb7
MS
3263 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3264 sal.pspace before calling set_current_source_symtab_and_line.
3265
ced54c8f
YQ
32662011-03-03 Yao Qi <yao@codesourcery.com>
3267
3268 * Makefile.in (configure-common): Remove. Let Makefile
3269 in dir common to rebuild itself.
3270 (common/Makefile): Likewise.
3271
3351ea09
JB
32722011-03-03 Joel Brobecker <brobecker@adacore.com>
3273
3274 * utils.c (parse_escape): Add i18n markup in error message.
3275
bf9f652a
YQ
32762011-03-03 Yao Qi <yao@codesourcery.com>
3277
3278 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3279 ARM_PC_REGNUM.
3280 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3281 (displaced_write_reg, displaced_read_reg): Likewise.
3282 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3283 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3284 (cleanup_branch): Replace magic number 14 and 15 with
3285 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3286
d42de051
MS
32872011-03-02 Michael Snyder <msnyder@vmware.com>
3288
240f9570
MS
3289 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3290
10dd8b54
MS
3291 * cli/cli-script.c (script_from_file): Add break for lint.
3292
b98bd911
MS
3293 * mdebugread.c (parse_partial_symbols): Fix indent.
3294
3494b66d
MS
3295 * target-descriptions.c (tdesc_gdb_type): No need to call
3296 xstrdup, callee saves a copy.
3297
daac021a
MS
3298 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3299
c38d16a7
MS
3300 * infcall.c (call_function_by_hand): Add break statements for lint.
3301
905b671b
MS
3302 * utils.c (parse_escape): Escape the escape char.
3303
f2eb0bc8 3304 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
3305 PyList_Append fails.
3306 (gdbpy_inferiors): Error out if build_inferior_list fails.
3307
8c6a60d1
MS
3308 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3309 a function call.
3310
d42de051
MS
3311 * record.c (record_restore): Move printf to before error return.
3312
4db71c0b
YQ
33132011-03-02 Yao Qi <yao@codesourcery.com>
3314
3315 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3316 is_thumb and insn_size.
3317 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3318 on both ARM and Thumb mode.
3319 (arm_process_displaced_insn): Set is_thumb and insn_size.
3320 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3321 (arm_displaced_step_fixup): Likewise.
3322
a9dc8dcc
MS
33232011-03-01 Michael Snyder <msnyder@vmware.com>
3324
53624a93
MS
3325 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3326
77766669
MS
3327 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3328
62d5b8da
MS
3329 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3330
5e9e105f
MS
3331 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3332
dc19db01
MS
3333 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3334 with xmalloc.
3335
5ce64950
MS
3336 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3337 which shadows function parameter.
3338
a0aa2878
MS
3339 * tracepoint.c (create_tsv_from_upload): Superfluous call
3340 to xstrdup. Callee already calls xstrdup.
3341
e325fb69
MS
3342 * linespec.c (decode_line_1): Remove unnecessary null check.
3343
21cbba77
MS
3344 * tracepoint.c (scope_info): Fix mem leak, remove underused
3345 variable.
3346
63360adc
MS
3347 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3348 superfluous null check.
3349
18ea20ac 3350 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 3351 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 3352
d014929c
MS
3353 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3354
6e9130cf
MS
3355 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3356 be null.
3357
5f01dbc0
MS
3358 * linespec.c (decode_line_1): Check for null before dereference.
3359
d684ab85
MS
3360 * reverse.c (record_restore): Move null-check to before pointer
3361 dereference.
3362
bfffb7e3
MS
3363 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3364
a9dc8dcc
MS
3365 * objc-lang.c (selectors_info): Add explanitory comment.
3366 (classes_info): Ditto.
3367
478fd957
UW
33682011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3369
3370 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3371 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3372 versions of the trampoline. Handle Thumb vs. ARM addresses.
3373 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3374 (arm_linux_init_abi): Install it.
3375 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3376 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3377
0480cefa
MS
33782011-02-28 Michael Snyder <msnyder@vmware.com>
3379
ac50ab3b
MS
3380 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3381 a little bigger, to avoid possibility of an overflow.
3382
f63fbe86
MS
3383 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3384 buffers a little bigger, to avoid possibility of an overflow.
3385
9e91a352
MS
3386 * coffread.c (coff_getfilename): Add check to avoid overflow.
3387
f2eb0bc8 3388 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
3389 avoid overflow.
3390 (classes_info): Error out on too long REGEXP.
3391
098ab512
MS
3392 * infrun.c (handle_inferior_event): Remove unused function call.
3393
bcbd1de9
MS
3394 * fork-child.c (fork_inferior): Remove ifdef'd code and
3395 unused variable.
3396
2e456570
MS
3397 * linux-thread-db.c (attach_thread): Discard unused value.
3398
14571dad
MS
3399 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3400
a9cbf802
MS
3401 * remote.c (remote_get_noisy_reply): Discard unused value.
3402 (remote_vcont_resume): Ditto.
3403 (remote_stop_ns): Ditto.
3404
5715d26e
MS
3405 * linespec.c (decode_objc): Delete unused variable.
3406
4a9bca80
MS
3407 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3408
f47fb265
MS
3409 * dwarf2read.c (add_partial_symbol): Discard unused values.
3410 (read_base_type): Delete unused variable.
3411
e81cff30
MS
3412 * dbxread.c (read_dbx_symtab): Discard unused value.
3413
262acaeb
MS
3414 * eval.c (evaluate_subexp_standard): Delete unused variable,
3415 and discard unused values.
3416
df983543
MS
3417 * infcmd.c (_initialize_infcmd): Discard unused values.
3418
89acf84d
MS
3419 * stabsread.c (rs6000_builtin_type): Missing break statement.
3420
ab8b8aca
MS
3421 * dbxread.c (process_one_symbol): Discard unused value.
3422
6b4511ab
MS
3423 * coffread.c (coff_end_symtab): Delete unused variable.
3424
e8e80198
MS
3425 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3426 (dwarf2_add_typedef): Delete unused variable.
3427 (read_namespace): Ditto.
3428 (dwarf_decode_macros): Ditto.
3429
976aa66e
MS
3430 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3431
5b92b49f
MS
3432 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3433
91e8df85
MS
3434 * p-valprint.c (pascal_val_print): Discard unused value.
3435
899500d6
MS
3436 * utils.c (nquery): Call va_end before return;
3437 (yquery): Ditto.
3438 (query): Ditto.
3439
0480cefa
MS
3440 * proc-service.c (ps_plog): Call va_end before return.
3441
fb6a3ed3
TT
34422011-02-28 Tom Tromey <tromey@redhat.com>
3443
3444 * python/python.c (gdbpy_value_cst): New global.
3445 (_initialize_python): Initialize it.
3446 * python/python-internal.h (gdbpy_value_cst): Declare.
3447 * python/py-value.c (convert_value_from_python): Use
3448 gdbpy_value_cst.
3449
c05202a1
MS
34502011-02-28 Michael Snyder <msnyder@vmware.com>
3451
e463f587
MS
3452 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3453
c38eea1a
MS
3454 * breakpoint.c (catch_syscall_completer): Free malloced list.
3455
3ef09ab5
MS
3456 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3457
8f9a01ee
MS
3458 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3459 (lval_func_check_synthetic_pointer): Ditto.
3460 (lval_func_free_closure): Fix use-after-free.
c05202a1 3461
477d0d57
TT
34622011-02-28 Tom Tromey <tromey@redhat.com>
3463
3464 * psymtab.c (expand_partial_symbol_tables): Use
3465 ALL_OBJFILE_PSYMTABS.
3466
20937029
JK
34672011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 * objc-lang.c (selectors_info): Error on too long REGEXP.
3470
907b7f4f
MS
34712011-02-28 Michael Snyder <msnyder@vmware.com>
3472
92e96192
MS
3473 * python/py-param.c (set_parameter_value): Add missing
3474 break statement.
3475
907b7f4f
MS
3476 * linux-record.c (record_linux_system_call): Add missing
3477 break statement.
3478
12c5a436
UW
34792011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3480
3481 * breakpoint.c (print_one_breakpoint_location): Remove unused
3482 argument PRINT_ADDRESS_BITS. Update callers.
3483 (print_one_breakpoint): Likewise.
3484
170b53b2
UW
34852011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3486
3487 * breakpoint.c (wrap_indent_at_field): New function.
3488 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3489 Allocate ui_stream locally instead of using STB argument.
3490 (print_one_breakpoint_location): Update call.
3491 * ui-out.c (ui_out_query_field): New function.
3492 * ui-out.h (ui_out_query_field): Add prototype.
3493
8ab1f94d
JB
34942011-02-28 Joel Brobecker <brobecker@adacore.com>
3495
3496 From Michael Snyder <msnyder@vmware.com>
3497 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3498
7d488639
MS
34992011-02-27 Michael Snyder <msnyder@vmware.com>
3500
ae179fba
MS
3501 * objc-lang.c (selectors_info): Prevent string overrun.
3502
086dbf66
MS
3503 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3504 error in strncpy.
3505
f2eb0bc8 3506 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
3507 outer scope.
3508
7d488639
MS
3509 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3510 param with a local variable of the same name.
3511
3bd0f5ef
MS
35122011-02-27 Michael Snyder <msnyder@vmware.com>
3513
3514 * value.c (value_from_history_ref): New function.
3515 * value.h (value_from_history_ref): Export.
3516 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3517 to parse value history references.
3518 * cli/cli-utils.h (get_number_trailer): Update comment.
3519
35202011-02-27 Michael Snyder <msnyder@vmware.com>
3521
3522 * inferior.c (detach_inferior_command): Use get_number_or_range.
3523 (kill_inferior_command): Ditto.
3524 (remove_inferior_command): Ditto.
3525 (initialize_inferiors): Make command names plural.
3526 Update help strings.
3527
766062f6
MS
35282011-02-27 Michael Snyder <msnyder@vmware.com>
3529
3530 * darwin-nat-info.c: Fix comment typo.
3531 * dwarf2expr.h: Ditto.
3532 * fbsd-nat.c: Ditto.
3533 * fbsd-nat.h: Ditto.
3534 * frame-unwind.h: Ditto.
3535 * frame.h: Ditto.
3536 * hppa-hpux-tdep.c: Ditto.
3537 * i386-linux-nat.c: Ditto.
3538 * linux-nat.c: Ditto.
3539 * nbsd-nat.c: Ditto.
3540 * nbsd-nat.h: Ditto.
3541 * ppc-linux-tdep.c: Ditto.
3542 * serial.c: Ditto.
3543 * ui-file.h: Ditto.
3544 * tui/tui-winsource.c: Ditto.
3545
f2c4ead5
MS
35462011-02-26 Michael Snyder <msnyder@vmware.com>
3547
86b887df
MS
3548 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3549
66fd3b1e
MS
3550 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3551
8c814cdd
MS
3552 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3553 with a local variable of the same name.
3554
6d5e094a 3555 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 3556 param with a local variable of the same name.
6d5e094a 3557 (i387_supply_xsave): Ditto.
e5b3d7d6 3558
5eee517d
MS
3559 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3560 that it does not shadow a function parameter.
3561
8fbf6b93
MS
3562 * i386-nat.c (i386_length_and_rw_bits): Document that case
3563 statement is meant to fall through.
3564
cb969d61
MS
3565 * expprint.c (dump_subexp_body_standard): Document that case
3566 statement is meant to fall through.
3567
f2c4ead5
MS
3568 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3569 dead if statement. Condition can't be false.
3570
b021a221
MS
35712011-02-25 Michael Snyder <msnyder@vmware.com>
3572
3573 * arm-tdep.c: Fix typos in comments.
3574 * bsd-uthread.c: Ditto.
3575 * completer.c: Ditto.
3576 * corelow.c: Ditto.
3577 * cp-namespace.c: Ditto.
3578 * cp-support.c: Ditto.
3579 * cris-tdep.c: Ditto.
3580 * dbxread.c: Ditto.
3581 * dwarf2read.c: Ditto.
3582 * frame.h: Ditto.
3583 * gdbtypes.h: Ditto.
3584 * inferior.h: Ditto.
3585 * mdebugread.c: Ditto.
3586 * mips-tdep.c: Ditto.
3587 * ppc-linux-nat.c: Ditto.
3588 * ppc-linux-tdep.c: Ditto.
3589 * printcmd.c: Ditto.
3590 * sol-thread.c: Ditto.
3591 * solib-frv.c: Ditto.
3592 * solist.h: Ditto.
3593 * sparc64-tdep.c: Ditto.
3594 * spu-tdep.c: Ditto.
3595 * stabsread.c: Ditto.
3596 * symfile.c: Ditto.
3597 * valops.c: Ditto.
3598 * varobj.c: Ditto.
3599 * vax-nat.c: Ditto.
3600 * python/py-block.c: Ditto.
3601 * python/py-symbol.c: Ditto.
3602 * python/py-symtab.c: Ditto.
3603 * python/py-value.c: Ditto.
3604 * tui/tui-win.c: Ditto.
3605
c82c0b55
MS
36062011-02-25 Michael Snyder <msnyder@vmware.com>
3607
3608 * inferior.c (print_inferior): Accept a string instead of an int
3609 for requested_inferiors, and use get_number_or_range to parse it.
3610 (info_inferiors_command): Pass args string to print_inferior.
3611 (initialize_inferiors): Change help string for info inferiors.
3612 * inferior.h (print_inferior): Export prototype change.
3613
ee00cd23
TT
36142011-02-25 Tom Tromey <tromey@redhat.com>
3615
3616 * common/ax.def (invalid2): Set to 0x31.
3617
0502ed8c
JK
36182011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3621 L and plongest.
3622 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3623 use L and plongest.
3624 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3625
2c9de912
MS
36262011-02-24 Michael Snyder <msnyder@vmware.com>
3627
3628 * Makefile.in (clean): Make clean should remove generated files
3629 observer.h and observer.inc.
3630
a04b0428
JB
36312011-02-24 Joel Brobecker <brobecker@adacore.com>
3632
3633 Revert the following patch (not approved yet):
3634 2011-02-21 Hui Zhu <teawater@gmail.com>
3635 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3636 * ax-gdb.c (gen_printf_expr_callback): New function.
3637 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3638 * ax-general.c (ax_memcpy): New function.
3639 (ax_print): Handle "printf".
3640 (ax_reqs): Ditto.
3641 * ax.h (ax_memcpy): Forward declare.
3642 * common/ax.def (invalid2): Removed.
3643 (printf): New entry.
3644 * printcmd.c (printcmd.h): New include.
3645 (string_printf): New function.
3646 (ui_printf): Removed.
3647 (printf_command): Remove static. Call string_printf.
3648 (eval_command): Call string_printf.
3649 * printcmd.h: New file.
3650 * tracepoint.c (validate_actionline,
3651 encode_actions_1): handle printf_command.
3652
2b52013f
TT
36532011-02-23 Tom Tromey <tromey@redhat.com>
3654
3655 * ax-general.c (ax_pick): Add missing newline.
3656
e5a67952
MS
36572011-02-23 Michael Snyder <msnyder@vmware.com>
3658
3659 * breakpoint.c (breakpoint_1): Change first argument from an int
3660 to a char pointer, so that the function now accepts a list of
f2eb0bc8 3661 breakpoints rather than just one. Use new function
e5a67952
MS
3662 'number_is_in_list' to implement.
3663 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3664 (watchpoints_info): Ditto.
3665 (tracepoints_info): Ditto.
3666 (maintenance_info_breakpoints): Ditto.
3667 (_initialize_breakpoint): Update help strings to reflect the fact
3668 that these functions can now take more than one argument.
3669 * cli/cli-utils.c (number_is_in_list): New function.
3670 * cli/cli-utils.h (number_is_in_list): Export.
3671
36722011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
3673
3674 * memattr.c (mem_enable_command): Use get_number_or_range.
3675 (mem_disable_command): Ditto.
3676 (mem_delete_command): Ditto.
3677 (_initialize_mem): Tweak usage message to reflect multiple
3678 arguments.
3679
6e6fbe60
DE
36802011-02-22 Doug Evans <dje@google.com>
3681
3682 Add gdb.lookup_global_symbol python function.
3683 * NEWS: Add entry.
3684 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3685 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3686 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3687
79b97fa8
TT
36882011-02-22 Tom Tromey <tromey@redhat.com>
3689
3690 * language.c (language_class_name_from_physname): Rename
3691 'curr_language' argument to 'lang'; use in body.
3692
298f437a
MS
36932011-02-22 Michael Snyder <msnyder@vmware.com>
3694
3695 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3696
b7ea3126
PA
36972011-02-22 Pedro Alves <pedro@codesourcery.com>
3698
3699 * frame-unwind.h: Fix comment to mention the this frame, not the
3700 next.
3701
58ee6d60
TT
37022011-02-22 Tom Tromey <tromey@redhat.com>
3703
3704 * symfile.c (auto_solib_limit): Remove.
3705 * symfile.h (auto_solib_limit): Remove.
3706
36238dbc
JB
37072011-02-22 Joel Brobecker <brobecker@adacore.com>
3708
3709 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3710
aea5b279
MS
37112011-02-21 Michael Snyder <msnyder@vmware.com>
3712
3713 * gdbthread.h (print_thread_info): Change prototype.
3714 * thread.c (print_thread_info): Accept char* instead of int for
3715 requested_threads argument. Use new function number_is_in_list
3716 to determine which threads to list.
3717 (info_threads_command): Pass char* to print_thread_info.
3718 * cli/cli-utils.c (number_is_in_list): New function.
3719 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 3720 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
3721 print_thread_info.
3722 (print_one_inferior): Ditto.
3723 (mi_cmd_list_thread_groups): Ditto.
3724
8caa75ee
JK
37252011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3726
3727 * common/Makefile.in (CFLAGS): New.
3728 (COMPILE): Add $(CFLAGS).
3729
ea666128
TT
37302011-02-21 Tom Tromey <tromey@redhat.com>
3731
3732 * breakpoint.c (catch_syscall_command_1): Fix typo.
3733
e9cafbcc
TT
37342011-02-21 Tom Tromey <tromey@redhat.com>
3735
3736 * reverse.c: Include cli-utils.h.
3737 * printcmd.c: Include cli-utils.h.
3738 (string_printf): Use skip_spaces.
3739 * cli/cli-utils.h: New file.
3740 * cli/cli-utils.c: New file.
3741 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3742 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3743 * breakpoint.h (get_number, get_number_or_range): Move to
3744 cli-utils.h.
3745 * breakpoint.c: Include cli-utils.h.
3746 (get_number_trailer, get_number, get_number_or_range)
3747 (ep_skip_leading_whitespace): Move to cli-utils.c.
3748 (create_breakpoint_sal, find_condition_and_thread)
3749 (decode_static_tracepoint_spec, watch_command_1)
3750 (watch_maybe_just_location, ep_parse_optional_if_clause)
3751 (catch_fork_command_1, catch_exec_command_1)
3752 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3753 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3754 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3755 (HFILES_NO_SRCDIR): Add cli-utils.h.
3756 (cli-utils.o): New target.
3757
f67fd822
PM
37582011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3759
3760 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3761 before calling discard_all_inferiors.
3762
c9def01d
UW
37632011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3764
3765 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3766 (struct builtin_opencl_type): Remove.
3767 (builtin_opencl_type): Change return type to "struct type **".
3768 (lookup_opencl_vector_type): Update caller.
3769 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3770 (build_opencl_types): Install plain array of "struct type *"
3771 instead of "struct builtin_opencl_type".
3772
e3039479
UW
37732011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3774 Ulrich Weigand <uweigand@de.ibm.com>
3775
3776 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3777 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3778 (struct arm_linux_hwbp_cap): New type.
3779 (arm_linux_get_hwbp_cap): New function.
3780 (arm_linux_get_hw_breakpoint_count): Likewise.
3781 (arm_linux_get_hw_watchpoint_count): Likewise.
3782 (arm_linux_can_use_hw_breakpoint): Likewise.
3783 (arm_hwbp_type): New type.
3784 (arm_hwbp_control_t): Likewise.
3785 (struct arm_linux_hw_breakpoint): Likewise.
3786 (struct arm_linux_thread_points): Likewise.
3787 (arm_threads): New global variable.
3788 (arm_linux_find_breakpoints_by_tid): New function.
3789 (arm_hwbp_control_initialize): Likewise.
3790 (arm_hwbp_control_is_enabled): Likewise.
3791 (arm_hwbp_control_disable): Likewise.
3792 (arm_linux_hw_breakpoint_initialize): Likewise.
3793 (arm_linux_get_hwbp_type): Likewise.
3794 (arm_linux_hw_watchpoint_initialize): Likewise.
3795 (arm_linux_hw_breakpoint_equal): Likewise.
3796 (arm_linux_insert_hw_breakpoint1): Likewise.
3797 (arm_linux_remove_hw_breakpoint1): Likewise.
3798 (arm_linux_insert_hw_breakpoint): Likewise.
3799 (arm_linux_remove_hw_breakpoint): Likewise.
3800 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3801 (arm_linux_insert_watchpoint): Likewise.
3802 (arm_linux_remove_watchpoint): Likewise.
3803 (arm_linux_stopped_data_address): Likewise.
3804 (arm_linux_stopped_by_watchpoint): Likewise.
3805 (arm_linux_watchpoint_addr_within_range): Likewise.
3806 (arm_linux_new_thread): Likewise.
3807 (arm_linux_thread_exit): Likewise.
3808 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3809 related target callbacks. Register arm_linux_new_thread and
3810 arm_linux_thread_exit.
3811 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3812 * arm-tdep.c (arm_pc_is_thumb): Make global.
3813 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3814
b5db5dfc
UW
38152011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3816
3817 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3818 per-frame locations while within a function epilogue.
3819
e25b2cfa
PM
38202011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3821
3822 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3823 to GNU coding standards.
3824
4af53f97
PM
38252011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3826
3827 Allow use of mingw native on Windows 95 OS.
e25b2cfa 3828 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
3829 (ser_windows_close): Only call CancelIo if function exists.
3830 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3831 to check for existence of CancelIo function in kernel32 DLL.
3832
d0e92d82
HZ
38332011-02-21 Hui Zhu <teawater@gmail.com>
3834
3835 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3836 * ax-gdb.c (gen_printf_expr_callback): New function.
3837 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3838 * ax-general.c (ax_memcpy): New function.
3839 (ax_print): Handle "printf".
3840 (ax_reqs): Ditto.
3841 * ax.h (ax_memcpy): Forward declare.
3842 * common/ax.def (invalid2): Removed.
3843 (printf): New entry.
3844 * printcmd.c (printcmd.h): New include.
3845 (string_printf): New function.
3846 (ui_printf): Removed.
3847 (printf_command): Remove static. Call string_printf.
3848 (eval_command): Call string_printf.
3849 * printcmd.h: New file.
3850 * tracepoint.c (validate_actionline,
3851 encode_actions_1): handle printf_command.
3852
7d357efd
MS
38532011-02-19 Michael Snyder <msnyder@vmware.com>
3854
3855 * reverse.c (delete_one_bookmark): Argument is now bookmark
3856 id rather than pointer to bookmark struct.
3857 (delete_bookmark_command): Use get_number_or_range.
3858 (goto_bookmark_command): Parse with get_number instead of strtoul.
3859 (bookmark_1): New function. Print info for one bookmark.
3860 (bookmarks_info): Use get_number_or_range and bookmark_1.
3861
7a45ebd7
MS
38622011-02-18 Michael Snyder <msnyder@vmware.com>
3863
f2eb0bc8 3864 * thread.c (info_threads_command): Re-implement using
7a45ebd7 3865 get_number_or_range.
65ebfb52 3866 (thread_apply_command): Ditto.
7a45ebd7 3867
94d5e490
TT
38682011-02-18 Tom Tromey <tromey@redhat.com>
3869
3870 * common/ax.def: New file.
3871 * ax.h (enum agent_op): Use ax.def.
3872 * ax-general.c (aop_map): Use ax.def.
3873
c7f96d2b
TT
38742011-02-18 Tom Tromey <tromey@redhat.com>
3875
3876 * ax-general.c (aop_map): Add pick and rot.
3877 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3878 <DW_OP_rot>: Implement.
3879 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3880 (ax_pick): Declare.
3881 * ax-general.c (ax_pick): New function.
3882
66694b75
TT
38832011-02-18 Tom Tromey <tromey@redhat.com>
3884
3885 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3886
eeaafae2
JK
38872011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3888 Tom Tromey <tromey@redhat.com>
3889
3890 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3891 make_symbol_overload_list_block with NULL BLOCK.
3892 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3893
3c3fe74c
PA
38942011-02-18 Pedro Alves <pedro@codesourcery.com>
3895
3896 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3897 * breakpoint.h (get_number_or_range): Declare.
3898 * printcmd.c (ALL_DISPLAYS): Declare.
3899 (delete_display): Reimplement taking a display pointer.
3900 (undisplay_command): Accept a range of displays to delete, using
3901 get_number_or_range.
3902
13163d80
PM
39032011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3904
3905 * c-valprint.c (c_val_print): Add embedded_offset to address
3906 for arrays of unspecified length.
3907 * p-valprint.c (pascal_val_print): Likewise.
3908
b434a28f
YQ
39092011-02-18 Yao Qi <yao@codesourcery.com>
3910
3911 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3912 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3913 (thumb_process_displaced_insn): New.
3914 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3915 call to arm_process_displaced_insn.
3916 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3917
9f6f94ff
TT
39182011-02-17 Tom Tromey <tromey@redhat.com>
3919
3920 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3921 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3922 compile_dwarf_to_ax. No longer static. Call
3923 dwarf2_compile_cfa_to_ax.
3924 (locexpr_tracepoint_var_ref): Update.
3925 (loclist_tracepoint_var_ref): Update.
3926 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3927 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3928 argument; add 'gdbarch' and 'pc'.
3929 (dwarf2_compile_cfa_to_ax): New function.
3930 (dwarf2_frame_cache): Update.
3931
e67ad678
JB
39322011-02-17 Joel Brobecker <brobecker@adacore.com>
3933
3934 * ada-lang.c (ada_type_of_array): Fix the size of the array
3935 in the case of an unconstrained packed array.
3936
946ebb0d
YQ
39372011-02-17 Yao Qi <yao@codesourcery.com>
3938
3939 * common/Makefile.in: Add more targets for make.
3940
1ba1b353
TT
39412011-02-16 Tom Tromey <tromey@redhat.com>
3942
3943 * dwarf2loc.c (unimplemented): Fix typo.
3944
b1bfef65
TT
39452011-02-16 Tom Tromey <tromey@redhat.com>
3946
3947 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3948 (compile_dwarf_to_ax) <default>: Use unimplemented.
3949 <DW_OP_deref>: Update.
3950 (disassemble_dwarf_expression): Update.
3951 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3952 (decode_locdesc): Update.
3953 * dwarf2expr.h (dwarf_stack_op_name): Update.
3954
5f1e6f19
TT
39552011-02-16 Tom Tromey <tromey@redhat.com>
3956
3957 * ax.h (struct aop_map) <name>: Now const.
3958
a0c78a73
PA
39592011-02-16 Tom Tromey <tromey@redhat.com>
3960
3961 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3962 than axs_rvalue.
3963
946ebb0d 39642011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
3965
3966 * infrun.c (get_displaced_step_closure_by_addr): New.
3967 * inferior.h: Declare it.
3968 * arm-tdep.c: (arm_pc_is_thumb): Call
3969 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3970 returns non-NULL.
3971
08807d5a
PA
39722011-02-16 Pedro Alves <pedro@codesourcery.com>
3973 Jan Kratochvil <jan.kratochvil@redhat.com>
3974
3975 gdb/
3976 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3977
29976f3f
PA
39782011-02-16 Pedro Alves <pedro@codesourcery.com>
3979 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 * value.c (value_contents_copy_raw): Extend describing comment.
3982 Assert that the destination contents we're overwriting are wholly
3983 available.
fb68ae73 3984 (value_contents_copy): Extend describing comment.
29976f3f 3985
cd24cfaa
PA
39862011-02-16 Pedro Alves <pedro@codesourcery.com>
3987 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 * value.c (value_available_contents_eq): Remove redundant local
3990 variables. Fix available contents comparision.
3991 * value.h (value_available_contents_eq): Extend describing
3992 comment.
3993
60bbf338
YQ
39942011-02-16 Yao Qi <yao@codesourcery.com>
3995
3996 * thread.c (info_threads_command): Add missing i18n markup and remove
3997 trailing newline.
3998
17450429
PP
39992011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4000
4001 * breakpoint.c (longjmp_names): New variable.
4002 (struct breakpoint_objfile_data): New type.
4003 (breakpoint_objfile_key): New variable.
4004 (msym_not_found): New variable.
4005 (msym_not_found_p): New predicate.
4006 (get_breakpoint_objfile_data): New function.
4007 (create_overlay_event_breakpoint): Check per-objfile cache for
4008 symbols first.
4009 (create_longjmp_master_breakpoint): Likewise.
4010 (create_std_terminate_master_breakpoint): Likewise.
4011 (create_exception_master_breakpoint): Likewise.
4012 (_initialize_breakpoint): Register per-objfile data key.
4013
af02033e
PP
40142011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4015
4016 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4017 parameter value.
4018 (create_longjmp_master_breakpoint): Loop over longjmp names.
4019 (create_std_terminate_master_breakpoint): Const-propagate parameter
4020 value.
4021 (update_breakpoints_after_exec): Adjust.
4022 (breakpoint_re_set): Adjust.
4023
60f98dde
MS
40242011-02-15 Michael Snyder <msnyder@vmware.com>
4025
cdf99611
MS
4026 * thread.c (info_threads_command): Process arg as thread id,
4027 or list of thread ids.
4028 (thread_find_command): New command.
4029 (_initialize_thread): Document argument for info threads.
4030 Document 'thread find' command.
4031 * NEWS: Document new command "thread find".
60f98dde 4032
0feedb2c
JK
40332011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4036 * aclocal.m4: Regenerated with aclocal-1.11.1.
4037 * common/configure: Regenerate with autoconf-2.64.
4038
648cd113
KW
40392011-02-15 Ken Werner <ken.werner@de.ibm.com>
4040
4041 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4042 bool data type to a size of one byte.
4043
5657161f
PA
40442011-02-15 Pedro Alves <pedro@codesourcery.com>
4045 Jan Kratochvil <jan.kratochvil@redhat.com>
4046
4047 * target.c (memory_xfer_live_readonly_partial): Document where to
4048 look for interface description.
4049
494e194e
YQ
40502011-02-15 Yao Qi <yao@codesourcery.com>
4051
4052 PR tdep/12352
4053 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4054 order to store PC value on stack instead of text section.
4055
d9492458
TJB
40562011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4057
4058 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4059 the EFP register set size.
4060 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4061 data from the VMX register.
4062 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4063 and write data from/to the VMX register.
4064
cdf99611
MS
40652011-02-14 Michael Snyder <msnyder@vmware.com>
4066
4067 * command.h (enum command_class): New class 'no_set_class', for
4068 "show" commands without a corresponding "set" command.
4069 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4070 * copying.c (_initialize_copying): Ditto for "show copying" and
4071 "show warranty".
4072 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4073 "show version".
4074 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4075 which there is no corresponding "set" command (eg. "show copying").
4076
424447ee
PA
40772011-02-14 Pedro Alves <pedro@codesourcery.com>
4078 Jan Kratochvil <jan.kratochvil@redhat.com>
4079
4080 * exec.c (section_table_available_memory): Change `len' parameter
4081 type to ULONGEST.
4082 * exec.h (section_table_available_memory): Ditto.
4083 * value.h (read_value_memory): Rename the `offset' parameter to
4084 `embedded_offset'.
4085
c0f61f9c 40862011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 4087 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
4088
4089 * memrange.c (compare_mem_ranges): Mention sort order in
4090 describing comment.
4091 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4092 * tracepoint.c (traceframe_available_memory): Extend comment to
4093 mention what happens to RESULT when the target does not support
4094 the query.
4095
6bfc80c7
PA
40962011-02-14 Pedro Alves <pedro@codesourcery.com>
4097 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4100 range.
4101
e7303042
PA
41022011-02-14 Pedro Alves <pedro@codesourcery.com>
4103
4104 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4105 No longer handle NULL values.
4106
8af8e3bc
PA
41072011-02-14 Pedro Alves <pedro@codesourcery.com>
4108
4109 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4110 * value.c: Include "exceptions.h".
4111 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4112 generic error.
4113 * cp-abi.c: Include gdb_assert.h.
4114 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4115 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4116 errors.
4117 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4118 parameters. No longer returns -1 on error.
4119 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4120 `val' parameters.
4121 * cp-valprint.c: Include exceptions.h.
4122 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4123 the baseclass_offset. Handle unavailable base classes. Use
4124 val_print_invalid_address.
4125 * p-valprint.c: Include exceptions.h.
4126 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4127 when fetching the baseclass_offset. No longer expect
4128 baseclass_offset returning -1. Handle unavailable base classes.
4129 Use val_print_invalid_address.
4130 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4131 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4132 `embedded_offset' and `val' parameters. Adjust.
4133 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4134 parameter, and change its type to gdb_byte pointer. Add
4135 `embedded_offset' and `val' parameters. Adjust. No longer expect
4136 baseclass_offset returning -1.
4137 (value_dynamic_cast): Use value_contents_for_printing rather than
4138 value_contents. Adjust.
4139 (search_struct_field): No longer expect baseclass_offset returning
4140 -1.
4141 (search_struct_method): If reading memory from the target is
4142 necessary, wrap it in a new value to pass to baseclass_offset. No
4143 longer expect baseclass_offset returning -1.
4144 (find_method_list): No longer expect baseclass_offset returning
4145 -1. Use value_contents_for_printing rather than value_contents.
4146 * valprint.c (val_print_invalid_address): New function.
4147 * valprint.h (val_print_invalid_address): Declare.
4148 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4149 and `val' parameters. No longer expect baseclass_offset returning
4150 -1. Adjust.
4151 * gnu-v2-abi.c: Include "exceptions.h".
4152 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4153 parameters. Handle unavailable memory. Recurse through
4154 gnuv2_baseclass_offset directly, rather than through
4155 baseclass_offset. No longer returns -1 on not found, instead
4156 throw an error.
4157 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4158 `val' parameters. Adjust.
4159
1b28d0b3
PA
41602011-02-14 Pedro Alves <pedro@codesourcery.com>
4161
4162 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4163 almost but not quite adjacent.
4164
ec0a52e1
PA
41652011-02-14 Pedro Alves <pedro@codesourcery.com>
4166
4167 * value.h (value_entirely_available): Declare.
4168 * value.c (value_entirely_available): New function.
4169 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4170 real type if the pointer is unavailable.
4171
24e6bcee
PA
41722011-02-14 Pedro Alves <pedro@codesourcery.com>
4173
4174 * valops.c (value_repeat): Use read_value_memory instead of
4175 read_memory.
4176
39d37385
PA
41772011-02-14 Pedro Alves <pedro@codesourcery.com>
4178
4179 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4180 * value.c (value_contents_copy_raw, value_contents_copy): New
4181 functions.
4182 (value_primitive_field): Use value_contents_copy_raw instead of
4183 memcpy.
4184 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4185 memcpy.
4186 (value_array, value_slice): Ditto.
4187 * valarith.c (value_subscripted_rvalue): Use
4188 value_contents_copy_raw instead of memcpy.
4189
a3d34bf4
PA
41902011-02-14 Pedro Alves <pedro@codesourcery.com>
4191
4192 <unavailable> references.
4193
4194 * valops.c (get_value_at): Use value_from_contents_and_address,
4195 avoiding read_memory.
4196
9fc6d940
PA
41972011-02-14 Pedro Alves <pedro@codesourcery.com>
4198
4199 * c-valprint.c (c_val_print): Print a string with unavailable
4200 contents as an array.
4201
5467c6c8
PA
42022011-02-14 Pedro Alves <pedro@codesourcery.com>
4203
4204 * value.h (unpack_bits_as_long): Delete declaration.
4205 (unpack_value_bits_as_long): Declare.
4206 (unpack_value_field_as_long): Declare.
4207 (value_field_bitfield): Declare.
4208 * value.c (unpack_bits_as_long): Rename to...
4209 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4210 value parameters. Return the extracted result in a new output
4211 parameter. If the value contents are unavailable, return false,
4212 otherwise return true.
4213 (unpack_value_bits_as_long): New.
4214 (unpack_field_as_long): Rename to...
4215 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4216 Add embedded_offset and value parameters. Return the extracted
4217 result in a new output parameter. If the value contents are
4218 unavailable, return false, otherwise return true.
4219 (unpack_value_field_as_long): New.
4220 (unpack_field_as_long_1): New.
4221 (unpack_field_as_long): Reimplement as wrapper around
4222 unpack_value_field_as_long_1.
4223 (value_field_bitfield): New function.
4224 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4225 unpack_value_bits_as_long. Mark the value as unavailable, if it
4226 is unavailable.
4227 * jv-valprint.c (java_print_value_fields): Use
4228 value_field_bitfield.
4229 * p-valprint.c (pascal_object_print_value_fields): Use
4230 value_field_bitfield.
4231 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4232
3158c6ed
PA
42332011-02-14 Pedro Alves <pedro@codesourcery.com>
4234
4235 * value.c (get_internalvar_integer): Also return the int value of
4236 TYPE_CODE_INT INTERNALVAR_VALUE values.
4237 (set_internalvar): Don't special case TYPE_CODE_INT.
4238
9fbdca0d
PA
42392011-02-14 Pedro Alves <pedro@codesourcery.com>
4240
4241 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4242 INTERNALVAR_POINTER.
4243 <pointer>: Delete.
4244 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4245 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4246 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4247
c8c1c22f
PA
42482011-02-14 Pedro Alves <pedro@codesourcery.com>
4249
4250 * value.h (value_available_contents_eq): Declare.
4251 * value.c (find_first_range_overlap): New function.
4252 (value_available_contents_eq): New function.
4253 * valprint.c (val_print_array_elements): Use
4254 value_available_contents_eq.
4255 * ada-valprint.c (val_print_packed_array_elements): Use
4256 value_available_contents_eq.
4257 * jv-valprint.c (java_value_print): Use
4258 value_available_contents_eq.
4259
e6e4e701
PA
42602011-02-14 Pedro Alves <pedro@codesourcery.com>
4261
4262 * target.c (target_read_live_memory): New function.
4263 (memory_xfer_live_readonly_partial): New.
4264 (memory_xfer_partial): If reading from a traceframe, fallback to
4265 reading unavailable read-only memory from read-only regions of
4266 live target memory.
4267 * tracepoint.c (disconnect_tracing): Adjust.
4268 (set_current_traceframe): New, factored out from
4269 set_traceframe_number.
4270 (set_traceframe_number): Reimplement to only change the traceframe
4271 number on the GDB side.
4272 (do_restore_current_traceframe_cleanup): Adjust.
4273 (make_cleanup_restore_traceframe_number): New.
4274 (cur_traceframe_number): New global.
4275 (tfile_open): Set cur_traceframe_number to no traceframe.
4276 (set_tfile_traceframe): New function.
4277 (tfile_trace_find): If looking up a traceframe using any method
4278 other than by number, make sure the current tfile traceframe
4279 matches gdb's current traceframe. Update the current tfile
4280 traceframe if the lookup succeeded.
4281 (tfile_fetch_registers, tfile_xfer_partial)
4282 (tfile_get_trace_state_variable_value): Make sure the remote
4283 traceframe matches gdb's current traceframe.
4284 * remote.c (remote_traceframe_number): New global.
4285 (remote_open_1): Set it to -1.
4286 (set_remote_traceframe): New function.
4287 (remote_fetch_registers, remote_store_registers)
4288 (remote_xfer_memory, remote_xfer_partial)
4289 (remote_get_trace_state_variable_value): Make sure the remote
4290 traceframe matches gdb's current traceframe.
4291 (remote_trace_find): If looking up a traceframe using any method
4292 other than by number, make sure the current remote traceframe
4293 matches gdb's current traceframe. Update the current remote
4294 traceframe if the lookup succeeded.
4295 * infrun.c (fetch_inferior_event): Adjust.
4296 * tracepoint.h (set_current_traceframe): Declare.
4297 (get_traceframe_number, set_traceframe_number): Add describing
4298 comments.
4299
e6ca34fc
PA
43002011-02-14 Pedro Alves <pedro@codesourcery.com>
4301
4302 Mark pieces of values as unavailable if the corresponding memory
4303 is unavailable.
4304
4305 * valops.c: Include tracepoint.h.
4306 (value_fetch_lazy): Use read_value_memory.
4307 (read_value_memory): New.
4308 * value.h (read_value_memory): Declare.
4309 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4310 * exec.c (section_table_available_memory): New function.
4311 * exec.h (section_table_available_memory): Declare.
4312
2a7498d8
PA
43132011-02-14 Pedro Alves <pedro@codesourcery.com>
4314
4315 * Makefile.in (SFILES): Add memrange.c.
4316 (HFILES_NO_SRCDIR): Add memrange.h.
4317 (COMMON_OBS): Add memrange.o.
4318 * memrange.c: New file.
4319 * memrange.h: New file.
4320 * tracepoint.c: Include memrange.h.
4321 (struct mem_range): Delete.
4322 (mem_range_s): Delete.
4323 (traceframe_available_memory): New function.
4324 * tracepoint.h (traceframe_available_memory): Declare.
4325
b3b9301e
PA
43262011-02-14 Pedro Alves <pedro@codesourcery.com>
4327
4328 * target.h (struct traceframe_info): Forward declare.
4329 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4330 (struct target_ops) <to_traceframe_info>: New field.
4331 (target_traceframe_info): New.
4332 * target.c (update_current_target): Inherit and default
4333 to_traceframe_info.
4334 * remote.c (PACKET_qXfer_traceframe_info): New.
4335 (remote_protocol_features): Register qXfer:traceframe-info:read.
4336 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4337 (remote_traceframe_info): New.
4338 (init_remote_ops): Install it.
4339 (_initialize_remote): Install "set/show remote traceframe-info"
4340 commands.
4341 * tracepoint.h (parse_traceframe_info): Declare.
4342 * tracepoint.c (struct mem_range): New.
4343 (mem_range_s): New typedef.
4344 (struct traceframe_info): New.
4345 (traceframe_info): New global.
4346 (free_traceframe_info): New function.
4347 (clear_traceframe_info): New function.
4348 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4349 info.
4350 (build_traceframe_info): New function.
4351 (tfile_traceframe_info): New function.
4352 (init_tfile_ops): Install tfile_traceframe_info.
4353 (traceframe_info_start_memory, free_result): New functions.
4354 (memory_attributes, traceframe_info_elements): New globals.
4355 (parse_traceframe_info, get_traceframe_info): New functions.
4356 * features/traceframe-info.dtd: New file.
4357 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4358
4e07d55f
PA
43592011-02-14 Pedro Alves <pedro@codesourcery.com>
4360
4361 Base support for <unavailable> value contents.
4362
4e07d55f
PA
4363 * value.h (value_bytes_available): Declare.
4364 (mark_value_bytes_unavailable): Declare.
4365 * value.c (struct range): New struct.
4366 (range_s): New typedef.
4367 (ranges_overlap): New function.
4368 (range_lessthan): New function.
4369 (ranges_contain_p): New function.
4370 (struct value) <unavailable>: New field.
4371 (value_bytes_available): New function.
4372 (mark_value_bytes_unavailable): New function.
4373 (require_not_optimized_out): Constify parameter.
4374 (require_available): New function.
4375 (value_contents_all, value_contents): Require all bytes be
4376 available.
4377 (value_free): Free `unavailable'.
4378 (value_copy): Copy `unavailable'.
4379 * valprint.h (val_print_unavailable): Declare.
4380 * valprint.c (valprint_check_validity): Rename `offset' parameter
4381 to `embedded_offset'. If printing a scalar, check whether the
4382 value chunk is available.
4383 (val_print_unavailable): New.
4384 (val_print_scalar_formatted): Check whether the value is
4385 available.
4386 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4387 pretty-printing unavailable values.
4388
bc9a5551
JK
43892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4392 * c-typeprint.c (c_type_print_args): Update the function comment. New
4393 variable param_type, initialize it. Remove const/volatile qualifiers
4394 for language_cplus and !show_artificial. Use param_type.
4395
93b55aa1
JK
43962011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4399 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4400 * symtab.h (struct symtab) <next>: Comment extension.
4401
181d9476
YQ
44022011-02-12 Yao Qi <yao@codesourcery.com>
4403
4404 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4405
b708a5c7
JK
44062011-02-11 Yao Qi <yao@codesourcery.com>
4407
4408 * common/Makefile.in: Add copyright header.
4409
c5187ac6
PA
44102011-02-11 Pedro Alves <pedro@codesourcery.com>
4411
4412 * infrun.c (proceed): Move switching out and in of tfind mode from
4413 here ...
4414 (fetch_inferior_event): ... to here.
4415
4f3e6fb7
YQ
44162011-02-11 Yao Qi <yao@codesourcery.com>
4417
4418 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4419 libcommon.a.
4420 * configure.ac: Add common to sub dir.
4421 * configure: Regenerate.
4422
b708a5c7
JK
44232011-02-11 Yao Qi <yao@codesourcery.com>
4424
4425 Build libcommon.a.
4426
4427 * common/Makefile.in: New.
4428 * common/configure.ac: New.
4429 * common/aclocal.m4: New.
4430 * common/configure: Generate.
4431
2287cc7e
PA
44322011-02-10 Pedro Alves <pedro@codesourcery.com>
4433
4434 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4435 side of the parenthesis.
4436
4437 Merge from GCC:
4438 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 4439 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 4440
fd62cb89
MS
44412011-02-08 Michael Snyder <msnyder@vmware.com>
4442
4443 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4444
56d2815c
JK
44452011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4446
4447 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4448 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4449 psubd and paddd.
4450
4f7d61a8
JK
44512011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4452
4453 PR 12361.
4454 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4455 phsubsw.
4456 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4457 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4458
54fcddd0
UW
44592011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4460
4461 * dwarf2read.c (read_subroutine_type): Set special calling
4462 convention flag for functions compiled by IBM XL C for OpenCL.
4463 * ppc-sysv-tdep.c: Include "dwarf2.h"
4464 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4465 calling convention.
4466 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4467 IBM OpenCL vector types calling convention.
4468 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4469 (ppc_sysv_abi_broken_return_value): Likewise.
4470 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4471 types calling convention.
4472 (ppc64_sysv_abi_return_value): Likewise.
4473 * spu-tdep.c: Include "dwarf2.h"
4474 (spu_return_value): Implement IBM OpenCL vector types calling
4475 convention.
4476
d6dafb7c
UW
44772011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4478
4479 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4480 correct ABI for AltiVec vector arguments.
4481
32b72a42
PA
44822011-02-07 Pedro Alves <pedro@codesourcery.com>
4483
4484 * valprint.c (val_print): Extend comment.
4485 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4486 interface explanation to val_print.
4487 (ada_val_print_array): Adjust comment to current interface.
4488 (print_field_values): Adjust comment to current interface.
4489 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4490 explanation to val_print.
4491 * f-valprint.c (f_val_print): Ditto.
4492 * jv-valprint.c (java_val_print): Ditto.
4493 * m2-valprint.c (m2_val_print): Ditto.
4494 * p-valprint.c (pascal_val_print): Ditto.
4495
9998af43
TJB
44962011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4497
4498 * breakpoint.c (parse_breakpoint_sals): Fix description.
4499
505500db 45002011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 4501 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
4502
4503 * python/py-inferior.c (python_on_normal_stop): New function.
4504 (python_on_resume): New function.
4505 (python_inferior_exit): New function.
4506 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4507 inferior_exit observers.
4508 * python/py-evtregistry.c: New file.
4509 * python/py-threadevent.c : New file.
4510 * python/py-event.c: New file.
4511 * python/py-evts.c: New file.
4512 * python/py-continueevent.c: New file.
4513 * python/py-bpevent.c: New file.
4514 * python/py-signalevent.c: New file.
4515 * python/py-exetiedevent.c: New file.
4516 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4517 Move struct breakpoint_object from here...
4518 * python/python-internal.h: ... to here.
4519 * python/py-event.h: New file.
4520 * python/py-events.h: New file.
4521 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4522 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4523 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4524 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4525 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4526 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4527 Add build rules for all the above.
4528
9e0ac564
TT
45292011-02-04 Tom Tromey <tromey@redhat.com>
4530
4531 * dwarf2read.c (dwarf2_section_empty_p): New function.
4532 (dwarf2_read_section): Use dwarf2_section_empty_p.
4533 (dwarf2_section_size): New function.
4534 (dwarf2_get_section_info): Unconditionally read section.
4535 (dwarf2_read_index): Use dwarf2_section_empty_p.
4536 (partial_read_comp_unit_head): Use dwarf2_section_size.
4537 (dwarf2_symbol_mark_computed): Likewise.
4538
eee5b35e
DD
45392011-02-04 David Daney <ddaney@caviumnetworks.com>
4540
4541 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4542
385203ed
DD
45432011-02-04 David Daney <ddaney@caviumnetworks.com>
4544
4545 * mips-linux-tdep.c: Include xml-syscall.h.
4546 (mips_linux_get_syscall_number): New function.
4547 (mips_linux_init_abi): Add calls to
4548 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4549 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4550 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4551 * syscalls/mips-n32-linux.xml: New file.
4552 * syscalls/mips-n64-linux.xml: New file.
4553 * syscalls/mips-o32-linux.xml: New file.
4554
9277c30c
UW
45552011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4556
4557 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4558 Complain about inverted range entries.
4559 (dwarf2_record_block_ranges): Likewise.
4560
a3be7890
TJB
45612011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4562
4563 Fix some typos.
4564 * breakpoint.c (update_watchpoint): Fix name of the
4565 update_global_location_list function.
4566 (print_one_breakpoint): Fix typo.
4567 (_initialize_breakpoint): Remove extra space in hbreak help
4568 string.
4569 * breakpoint.h (struct bp_location) <length>: Fix field
4570 description.
4571
041274d8
PA
45722011-02-04 Pedro Alves <pedro@codesourcery.com>
4573
4574 * regcache.c (registers_changed_ptid): Don't explictly always
4575 clear `current_regcache'. Only clear current_thread_ptid and
4576 current_thread_arch when PTID matches. Only reinit the frame
4577 cache if PTID matches the current inferior_ptid. Move alloca(0)
4578 call to ...
4579 (registers_changed): ... here.
4580
c1c2ab58
UW
45812011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4582
4583 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4584 starts with __stack_chk_guard as stack guard symbol.
4585
9011945e
AB
45862011-02-03 Andrew Burgess <aburgess@broadcom.com>
4587
4588 * disasm.c (compare_lines): Handle the end of sequence markers
4589 within the line table to better support disassembling over
4590 compilation unit boundaries.
4591
e0634ccf
UW
45922011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4593
4594 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4595 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4596 implementation even if no symbols are available.
4597 (thumb_analyze_prologue): Update call to skip_prologue_function.
4598 (arm_analyze_prologue): Likewise.
4599
0e9e9abd
UW
46002011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4601
4602 * arm-tdep.c: Include "observer.h".
4603 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4604 (arm_exidx_data_key): New static variable.
4605 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4606 (struct arm_exidx_data): Likewise.
4607 (arm_exidx_data_free): New function.
4608 (arm_compare_exidx_entries): Likewise.
4609 (arm_obj_section_from_vma): Likewise.
4610 (arm_exidx_new_objfile): Likewise.
4611 (arm_find_exidx_entry): Likewise.
4612 (arm_exidx_fill_cache): Likewise.
4613 (arm_exidx_unwind_sniffer): Likewise.
4614 (arm_exidx_unwind): New global variable.
4615 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4616 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4617 observer. Register arm_exidx_data_key as objfile data.
4618
2e9e421f
UW
46192011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4620
4621 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4622 due to accessing uninitialized variable. Fix indentation.
4623
580688f3
PA
46242011-02-02 Pedro Alves <pedro@codesourcery.com>
4625
4626 * c-valprint.c (c_value_print): When doing virtual base pointer
4627 adjustment, create a new value with adjusted contents rather than
4628 changing the contents of the value being printed (and getting it
4629 wrong).
4630
3d2c1d41
PA
46312011-02-02 Pedro Alves <pedro@codesourcery.com>
4632
4633 * xml-support.c (xml_find_attribute): New.
4634 (xinclude_start_include): Use it.
4635 * xml-support.h (xml_find_attribute): Declare.
4636 * memory-map.c (memory_map_start_memory)
4637 (memory_map_start_property): Use xml_find_attribute.
4638 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4639 xml_find_attribute.
4640 * remote.c (start_thread): Use xml_find_attribute.
4641 * solib-target.c (library_list_start_segment)
4642 (library_list_start_section, library_list_start_library)
4643 (library_list_start_list): Use xml_find_attribute.
4644 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4645 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4646 (tdesc_start_field): Use xml_find_attribute.
4647
0af3e2db
UW
46482011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4649
4650 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4651 (BUILD_OCL_VTYPES): Update.
4652
c1039e3c
JB
46532011-02-02 Joel Brobecker <brobecker@adacore.com>
4654
4655 * configure.ac: Work around non-GNU sed limitation when computing
4656 python version number.
4657 * configure: Regenerate.
4658
600ea1be
JK
46592011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4660
4661 Fix debug printing of TYPE_INSTANCE.
4662 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4663 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4664
56c12414
JK
46652011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4668 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4669 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4670 * ada-operator.inc: Rename the file to ...
4671 * ada-operator.def: ... here, wrap all the entries by macro OP.
4672 * expprint.c (op_name_standard): Remove all the entries. Include
4673 "std-operator.def" instead.
4674 * expression.h (enum exp_opcode): Include "std-operator.def" and
4675 "ada-operator.def". Move all the entries ...
4676 * std-operator.def: ... here, wrap all the entries by macro OP.
4677
c52b559d
PP
46782011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4679
4680 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4681 * breakpoint.c (remove_jit_event_breakpoints): New function.
4682 * jit.c (jit_descriptor_addr): Delete.
4683 (registering_code): Delete.
4684 (clear_int): Delete.
4685 (jit_inferior_data): New variable.
4686 (struct jit_inferior_data): New type.
4687 (get_jit_inferior_data): New function.
4688 (jit_inferior_data_cleanup): New function.
4689 (jit_read_descriptor): Adjust.
4690 (jit_register_code): Adjust.
4691 (jit_breakpoint_re_set_internal): New function; move code here ...
4692 (jit_inferior_init): ... from here.
4693 (jit_breakpoint_re_set): Adjust.
4694 (jit_reset_inferior_data_and_breakpoints): New function.
4695 (jit_inferior_created_observer): Adjust.
4696 (jit_inferior_exit_hook): Adjust.
4697 (jit_executable_changed_observer): New function.
4698 (jit_event_handler): Adjust.
4699 (_initialize_jit): Adjust.
4700
e839132d
MS
47012011-01-31 Michael Snyder <msnyder@vmware.com>
4702
4703 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4704 line.
4705
47a80e90
TT
47062011-01-31 Tom Tromey <tromey@redhat.com>
4707
4708 PR python/12216:
4709 * python/python.c (execute_gdb_command): Call
4710 prevent_dont_repeat.
4711 * top.c (suppress_dont_repeat): New global.
4712 (dont_repeat): Use it.
4713 (prevent_dont_repeat): New function.
4714 * command.h (prevent_dont_repeat): Declare.
4715
45a43567
TT
47162011-01-31 Tom Tromey <tromey@redhat.com>
4717
4718 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4719 * python/py-breakpoint.c (bppy_set_silent): Use
4720 breakpoint_set_silent.
4721 (bppy_set_thread): Use breakpoint_set_thread.
4722 (bppy_set_task): Use breakpoint_set_task.
4723 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4724 (breakpoint_set_task): Declare.
4725 (make_breakpoint_silent): Remove.
4726 * breakpoint.c (breakpoint_set_silent): New function.
4727 (breakpoint_set_thread): Likewise.
4728 (breakpoint_set_task): Likewise.
4729 (make_breakpoint_silent): Remove.
4730
09d682a4
TT
47312011-01-31 Tom Tromey <tromey@redhat.com>
4732
4733 * breakpoint.h (user_breakpoint_p): Declare.
4734 * breakpoint.c (user_breakpoint_p): New function.
4735 (breakpoint_1): Use it.
4736 (save_breakpoints): Likewise.
4737
9c4ea6c5
JB
47382011-01-31 Joel Brobecker <brobecker@adacore.com>
4739
4740 * configure.ac: Add handling of Python distribution on Windows.
4741 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4742 sysconfig variables are not defined, then do not use them.
4743 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4744 instead. On Windows, return all paths using forward-slashes
4745 rather than backslashes.
4746
ac534cba
JB
47472011-01-31 Joel Brobecker <brobecker@adacore.com>
4748
4749 * configure.ac: Remove fallback behavior for building
4750 against Python. Remove tweaking of Python include path.
4751 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4752 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4753 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4754 Always restore CPPFLAGS and LIBS after linking test.
4755 * configure: Regenerated.
4756 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4757 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4758 * python/python-internal.h: Adjust includes of Python .h files.
4759
c2f0d045
JB
47602011-01-31 Joel Brobecker <brobecker@adacore.com>
4761
4762 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4763 in error message.
4764
6b0c4c1f
JB
47652011-01-31 Joel Brobecker <brobecker@adacore.com>
4766
4767 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4768 value test.
4769
672c9795
YQ
47702011-01-31 Yao Qi <yao@codesourcery.com>
4771
4772 * arm-linux-nat.c: Update calls to regcache_register_status
4773 instead of regcache_valid_p.
4774 * aix-thread.c: Likewise.
4775 * i386gnu-nat.c: Likewise.
4776
80b23b6a
JK
47772011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 Fix crash.
4780 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4781 touching TYPE_FIELD_ARTIFICIAL.
4782
4cd712bd
RE
47832011-01-28 Richard Earnshaw <rearnsha@arm.com>
4784
4785 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4786 Committers.
4787
ffd5ec24
PA
47882011-01-28 Pedro Alves <pedro@codesourcery.com>
4789
4790 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4791 selected, don't try iterating over the traceframe's blocks.
4792 (tfile_has_stack): If there's no traceframe selected, then there's
4793 no stack.
4794 (tfile_has_registers): If there's no traceframe selected, then
4795 there's no registers.
4796
e8c9e0a1
PA
47972011-01-28 Pedro Alves <pedro@codesourcery.com>
4798
4799 * target.c (memory_xfer_partial): No need to restore shadows if we
4800 haven't read anything.
4801
de15c4ab
PA
48022011-01-28 Pedro Alves <pedro@codesourcery.com>
4803
4804 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4805 and val_print_scalar_formatted.
4806
9f41c731
PA
48072011-01-27 Pedro Alves <pedro@codesourcery.com>
4808
4809 * tracepoint.c (tfile_read): New.
4810 (tfile_open): Use it.
4811 (tfile_get_traceframe_address): Use it.
4812 (tfile_trace_find): Use it.
4813 (walk_blocks_callback_func): New typedef.
4814 (match_blocktype): New function.
4815 (traceframe_walk_blocks): New function.
4816 (traceframe_find_block_type): New function.
4817 (tfile_fetch_registers, tfile_xfer_partial)
4818 (tfile_get_trace_state_variable_value): Use
4819 traceframe_find_block_type and tfile_read.
4820
cdefc55d
KB
48212011-01-26 Kevin Buettner <kevinb@redhat.com>
4822
4823 * remote-mips.c: Add internationalization mark ups. Remove
4824 trailing \n from already marked up strings.
4825
a81766d8
TT
48262011-01-26 Tom Tromey <tromey@redhat.com>
4827
4828 * python/py-prettyprint.c (print_string_repr): Clear
4829 'addressprint' option when calling val_print_string.
4830 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4831 option when calling val_print_string.
4832
74aedc46
TT
48332011-01-26 Tom Tromey <tromey@redhat.com>
4834
4835 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4836 GDB_PY_LL_ARG.
4837 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4838 macros.
4839 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4840 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4841 (gdb_py_long_as_ulongest): New defines.
4842 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4843 (gdb_py_int_as_long): Declare.
4844 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4845 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4846 (valpy_long): Add comment.
4847 * python/py-utils.c (get_addr_from_python): Use
4848 gdb_py_long_as_ulongest. Handle overflow properly.
4849 (gdb_py_object_from_longest): New function.
4850 (gdb_py_object_from_ulongest): Likewise.
4851 (gdb_py_int_as_long): Likewise.
4852 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4853 * python/py-symtab.c (salpy_get_pc): Use
4854 gdb_py_long_from_ulongest.
4855 (salpy_get_line): Use PyInt_FromLong.
4856 * python/py-param.c (set_parameter_value): Use
4857 gdb_py_int_as_long.
4858 * python/py-lazy-string.c (stpy_get_address): Use
4859 gdb_py_long_from_ulongest.
4860 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4861 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4862 * python/py-breakpoint.c (bppy_set_thread): Use
4863 gdb_py_int_as_long.
4864 (bppy_set_task): Likewise.
4865 (bppy_set_ignore_count): Likewise.
4866 (bppy_set_hit_count): Likewise.
4867 * python/py-block.c (blpy_get_start): Use
4868 gdb_py_object_from_ulongest.
4869 (blpy_get_end): Likewise.
4870 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4871
e4f6d2ec
TJB
48722011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4873
4874 PR/symtab 11766:
4875 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4876 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4877 equality test for objfile, initialize addr_low if needed.
4878
b30aa278
PA
48792011-01-25 Pedro Alves <pedro@codesourcery.com>
4880
4881 * tui/tui-regs.c (tui_register_format): Remove dead code.
4882
ab2188aa
PA
48832011-01-25 Pedro Alves <pedro@codesourcery.com>
4884
4885 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4886 instead of print_scalar_formatted.
4887 (print_scalar_formatted): Don't handle 's' format strings here,
4888 and add an assertion that we never see such format here.
4889 * valprint.h (val_print_scalar_formatted): Declare.
4890 * valprint.c (val_print_scalar_formatted): New.
4891 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4892 instead of print_scalar_formatted.
4893 * jv-valprint.c (java_val_print): Ditto.
4894 * p-valprint.c (pascal_val_print): Ditto.
4895 * ada-valprint.c (ada_val_print_1): Ditto.
4896 * f-valprint.c (f_val_print): Ditto.
4897 * infcmd.c (registers_info): Ditto.
4898 * m2-valprint.c (m2_val_print): Ditto.
4899
66d61a4c
PA
49002011-01-25 Pedro Alves <pedro@codesourcery.com>
4901
4902 * m2-valprint.c (print_unbounded_array): Pass
4903 value_contents_for_printing rather than value_contents, to
4904 m2_print_array_contents. Also pass in the value.
4905
831adc1f
JK
49062011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4909 (save_gdb_index_command): Switch to .gdb_index version 4.
4910
20622269
PA
49112011-01-25 Pedro Alves <pedro@codesourcery.com>
4912
4913 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4914 than frame_register, and always pass a valid value to val_print.
4915
585fdaa1
PA
49162011-01-25 Pedro Alves <pedro@codesourcery.com>
4917
4918 Centralize printing "<optimized out>".
4919
4920 * valprint.h (val_print_optimized_out): Declare.
4921 * cp-valprint.c (cp_print_value_fields): Use
4922 val_print_optimized_out.
4923 * jv-valprint.c (java_print_value_fields): Ditto.
4924 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4925 * printcmd.c (print_formatted): Ditto.
4926 * valprint.c (valprint_check_validity): Ditto.
4927 (value_check_printable): Ditto.
4928 (val_print_optimized_out): New.
4929
29ec5263
PA
49302011-01-25 Pedro Alves <pedro@codesourcery.com>
4931
4932 * infcmd.c (default_print_registers_info): Allocate values so to
4933 never pass a NULL value to val_print.
4934
de4127a3
PA
49352011-01-25 Pedro Alves <pedro@codesourcery.com>
4936
4937 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4938 boolean. Make sure to always pass a value that matches the
4939 contents buffer to callees. Preserve `address' for following
4940 iterations.
4941 * value.c (value_contents_for_printing_const): New.
4942 (value_address): Constify value argument.
4943 * value.h (value_contents_for_printing_const): Declare.
4944 (value_address): Constify value argument.
4945
ee99023e
PA
49462011-01-25 Pedro Alves <pedro@codesourcery.com>
4947
4948 * regcache.c (struct regcache_descr): Rename
4949 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4950 and sizeof_cooked_register_valid_p to
4951 sizeof_cooked_register_status.
4952 (init_regcache_descr): Adjust.
4953 (struct regcache): Rename register_valid_p field to
4954 register_status.
4955 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4956 (do_cooked_read): Adjust.
4957 (regcache_valid_p): Rename to ...
4958 (regcache_register_status): ... this. Adjust.
4959 (regcache_invalidate): Adjust.
4960 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4961 Adjust.
4962 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4963 as unavailable, not valid.
4964 (regcache_dump): Adjust.
4965 * regcache.h (enum register_status): New.
4966 (regcache_register_status): Declare.
4967 (regcache_invalidate): Delete declaration.
4968 * corelow.c (get_core_registers): Adjust.
4969 * tracepoint.c (tfile_fetch_registers): Adjust.
4970 * trad-frame.c (REG_VALUE): Rename to ...
4971 (TF_REG_VALUE): ... this.
4972 (REG_UNKNOWN): Rename to ...
4973 (TF_REG_UNKNOWN): ... this.
4974 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4975 * mi/mi-main.c (register_changed_p): Adjust.
4976
99e42fd8
PA
49772011-01-25 Pedro Alves <pedro@codesourcery.com>
4978
4979 * regcache.c (struct regcache_descr): Remove outdated comment.
4980 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4981 overallocate hack.
4982 (regcache_xmalloc): Rename to ...
4983 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4984 Allocate the regcache type accordingly.
4985 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4986 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4987 cooked registers, not raw.
4988 (regcache_dup_no_passthrough): Delete.
4989 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4990 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4991 mention obsolete write_register_bytes.
4992 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4993
f7605bc2
PA
49942011-01-25 Pedro Alves <pedro@codesourcery.com>
4995
4996 Stop remote_read_bytes from handling partial reads itself.
4997
4998 * remote-fileio.c: Include target.h.
4999 (remote_fileio_write_bytes): Delete.
5000 (remote_fileio_func_open, remote_fileio_func_write)
5001 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5002 target_read_memory.
5003 (remote_fileio_func_stat): Use target_read_memory and
5004 target_write_memory.
5005 (remote_fileio_func_gettimeofday): Use target_write_memory.
5006 (remote_fileio_func_system): Use target_read_memory.
5007 * remote.c (remote_write_bytes): Make it static.
5008 (remote_read_bytes): Don't handle partial reads here.
5009 * remote.h (remote_read_bytes): Delete declaration.
5010
efc0eabd
PA
50112011-01-25 Pedro Alves <pedro@codesourcery.com>
5012
5013 Simplify XML parsing a bit.
5014
5015 * xml-support.h (gdb_xml_parse_quick): Declare.
5016 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5017 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5018 parameter.
5019 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5020 gdb_xml_create_parser_and_cleanup_1.
5021 (gdb_xml_parse_quick): New.
5022 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5023 * osdata.c (osdata_parse): Ditto.
5024 * remote.c (remote_threads_info): Ditto.
5025 * solib-target.c (solib_target_parse_libraries): Ditto.
5026 * xml-syscall.c (syscall_parse_xml): Ditto.
5027 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5028
314d366a
KB
50292011-01-24 Kevin Buettner <kevinb@redhat.com>
5030
5031 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5032 with remote-mips.o added to gdb_target_obs.
5033 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5034
a491d753
PA
50352011-01-24 Pedro Alves <pedro@codesourcery.com>
5036
5037 * ada-valprint.c (val_print_packed_array_elements): Pass the
5038 correct struct value to val_print.
5039 (ada_val_print_1): Ditto.
5040
490f124f
PA
50412011-01-24 Pedro Alves <pedro@codesourcery.com>
5042
5043 Don't lose embedded_offset in printing routines throughout.
5044
5045 * valprint.h (val_print_array_elements): Change prototype.
5046 * valprint.c (val_print_array_elements): Add `embedded_offset'
5047 parameter, and adjust to pass it down to val_print, while passing
5048 `valaddr' or `address' unmodified. Take embedded_offset into
5049 account when checking repetitions.
5050 * c-valprint.c (c_val_print): Pass embedded_offset to
5051 val_print_array_elements instead of adjusting `valaddr' and
5052 `address'.
5053 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5054 embedded_offset to val_print_array_elements instead of adjusting
5055 `valaddr'.
5056 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5057 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5058 val_print_array_elements and pascal_object_print_value_fields
5059 instead of adjusting `valaddr'.
5060 (pascal_object_print_value_fields): Add `offset' parameter, and
5061 adjust to use it.
5062 (pascal_object_print_value): Add `offset' parameter, and adjust to
5063 use it.
5064 (pascal_object_print_static_field): Use
5065 value_contents_for_printing/value_embedded_offset, rather than
5066 value_contents.
5067 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5068 parameter, and adjust to use it. Use
5069 value_contents_for_printing/value_embedded_offset, rather than
5070 value_contents.
5071 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5072 (ada_val_print_array): Add `offset' parameter, and adjust to use
5073 it.
5074 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5075 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5076 Instead work with offsets. Use
5077 value_contents_for_printing/value_embedded_offset, rather than
5078 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5079 and use value_from_pointer to extract a target pointer, rather
5080 than value_from_longest.
5081 (print_variant_part): Add `offset' parameter. Replace
5082 `outer_valaddr' parameter by a new `outer_offset' parameter.
5083 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5084 (ada_value_print): Use
5085 value_contents_for_printing/value_embedded_offset, rather than
5086 value_contents.
5087 (print_record): Add `offset' parameter, and adjust to pass it
5088 down.
5089 (print_field_values): Add `offset' parameter. Replace
5090 `outer_valaddr' parameter by a new `outer_offset' parameter.
5091 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5092 Use value_contents_for_printing/value_embedded_offset, rather than
5093 value_contents.
5094 * d-valprint.c (dynamic_array_type): Use
5095 value_contents_for_printing/value_embedded_offset, rather than
5096 value_contents.
5097 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5098 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5099 (java_print_value_fields): Take `offset' into account. Don't
5100 re-adjust `valaddr'. Instead pass down adjusted offsets.
5101 (java_val_print): Take `embedded_offset' into account. Pass it to
5102 java_print_value_fields.
5103 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5104 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5105 down adjusted offsets.
5106 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5107 (f_val_print): Take `embedded_offset' into account.
5108
7bfc9434
JB
51092011-01-21 Joel Brobecker <brobecker@adacore.com>
5110
5111 * inflow.c: Include "gdbcmd.h".
5112 (interactive_mode): New static global, moved here from top.c.
5113 (show_interactive_mode): New function, moved here from top.c.
5114 use gdb_has_a_terminal instead of input_from_terminal_p to
5115 determine the current mode.
5116 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5117 setting.
5118 (_initialize_inflow): Add the "set/show interactive-mode"
5119 commands. Moved here from top.c, after having adjusted slightly
5120 the help text.
5121 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5122 to inflow.c.
5123 (input_from_terminal_p): Remove handling of "interactive-mode"
5124 setting, moved to infow.c.
5125 (init_main): Remove creation of the "set/show interactive-mode"
5126 commands, moved to inflow.c.
5127
44603653
JB
51282011-01-19 Joel Brobecker <brobecker@adacore.com>
5129
5130 * NEWS: Add entry for native ia64-hpux support.
5131
4694da01
TT
51322011-01-19 Tom Tromey <tromey@redhat.com>
5133
5134 PR mi/8618:
5135 * thread.c (free_thread): Free 'name'.
5136 (print_thread_info): Emit thread name. Change CLI output.
5137 (thread_name_command): New function.
5138 (do_captured_thread_select): Emit newline.
5139 (_initialize_thread): Register 'thread name' command.
5140 * target.h (struct target_ops) <to_thread_name>: New field.
5141 (target_thread_name): New macro.
5142 * target.c (update_current_target): Handle to_thread_name.
5143 * python/py-infthread.c (thpy_get_name): New function.
5144 (thpy_set_name): Likewise.
5145 (thread_object_getset): Add "name".
5146 * linux-nat.c (linux_nat_thread_name): New function.
5147 (linux_nat_add_target): Set to_thread_name.
5148 * gdbthread.h (struct thread_info) <name>: New field.
5149
10d44370
JB
51502011-01-18 Joel Brobecker <brobecker@adacore.com>
5151
5152 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5153 (ada_val_print_1): Likewise.
5154
e3acb115
JB
51552011-01-18 Joel Brobecker <brobecker@adacore.com>
5156
5157 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5158 upper limit address is not greater than the function end address
5159 when the upper limit could not be computed using the debugging
5160 info.
5161
dc92e161
TT
51622011-01-17 Tom Tromey <tromey@redhat.com>
5163
5164 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5165 get_regcomp_error.
5166 * utils.c: Include gdb_regex.h.
5167 (do_regfree_cleanup): New function.
5168 (make_regfree_cleanup): Likewise.
5169 (get_regcomp_error): Likewise.
5170 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5171
f55af66d
TT
51722011-01-17 Tom Tromey <tromey@redhat.com>
5173
5174 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5175 re_compile_fastmap.
5176
a5a44b53
PM
51772011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5178
5179 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5180 for internal variables.
5181 (last_was_structop): New static variable.
5182 (COMPLETE): New token.
5183 (field_exp): New rule to group all '.' suffix handling.
5184 Add mark_struct_expression calls when approriate to be able
5185 to correctly find fields for completion.
5186 (yylex): Adapt to handle field completion and set INTVAR when
5187 required.
5188
2c291032
YQ
51892011-01-14 Yao Qi <yao@codesourcery.com>
5190
5191 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5192 save_reggroup, restore_reggroup and all_reggroup.
5193
447b483c
JB
51942011-01-14 Joel Brobecker <brobecker@adacore.com>
5195
5196 * ada-valprint. (ada_printchar): Use the correct type length
5197 in call to ada_emit_char.
5198 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5199
7b64a93b
PM
52002011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5201
5202 * solib-som.h (hpux_major_release): Declare variable here.
5203 * solib-som.c: Remove <sys/utsname.h> header.
5204 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5205 (hpux_major_release): Make global, change default value to
5206 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 5207 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
5208 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5209 Add "solib-som.h" header.
5210 (set_hpux_major_release): New function.
5211 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5212
4e18c053
MF
52132011-01-14 Mike Frysinger <vapier@gentoo.org>
5214
5215 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5216
a9df6b22
JB
52172011-01-14 Joel Brobecker <brobecker@adacore.com>
5218
5219 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5220 new-line at end of warning message.
5221 (ia64_hpux_store_register): Remove trailing new-line at end of
5222 error message.
5223 * ia64-hpux-tdep.c: Rephrase comment.
5224 * solib-ia64-hpux.c (struct dld_info): Change type of field
5225 dld_flags from "long long" to ULONGEST.
5226
ecb956dd
PA
52272011-01-14 Pedro Alves <pedro@codesourcery.com>
5228
5229 * target.h (deprecated_child_ops): Delete declaration.
5230 * target.c (deprecated_child_ops): Delete definition.
5231
76adfcae
PA
52322011-01-14 Pedro Alves <pedro@codesourcery.com>
5233
5234 * Makefile.in (hpux-thread.o): Delete rule.
5235 * configure.ac: Don't check for HPUX DCE threads support.
5236 * configure, config.in: Regenerate.
5237 * hppa-hpux-nat.c (child_suppress_run): Delete.
5238 (hppa_hpux_child_can_run): Delete.
5239 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5240 * hpux-thread.c: Delete.
5241
042e866e
JB
52422011-01-13 Joel Brobecker <brobecker@adacore.com>
5243
5244 * hpux-thread.c (hpux_pid_to_str): Delete.
5245
4ffa5a33
JB
52462011-01-13 Joel Brobecker <brobecker@adacore.com>
5247
5248 * ada-valprint.c (ada_emit_char): Remove strange code.
5249 Check that c is <= UCHAR_MAX before passing it to isascii.
5250 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5251
de8fa76c
JB
52522011-01-13 Joel Brobecker <brobecker@adacore.com>
5253
5254 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5255 to the case where instream is stdin.
5256
c4de7027
JB
52572011-01-13 Joel Brobecker <brobecker@adacore.com>
5258
5259 * ia64-tdep.h (struct regcache): Forward declare.
5260 (struct ia64_infcall_ops): New struct type.
5261 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5262 and "infcall_ops".
5263 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5264 Renames ia64_find_global_pointer.
5265 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5266 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5267 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5268 methods.
5269 (ia64_infcall_ops): New static global constant.
5270 (ia64_gdbarch_init): Set tdep->infcall_ops.
5271 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5272 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5273 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5274 (ia64_hpux_dummy_code): New static global constant.
5275 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5276 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5277 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5278 New function.
5279 (ia64_hpux_infcall_ops): New static global constant.
5280 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5281 for inferior function calls to work properly on ia64-hpux.
5282
77ca787b
JB
52832011-01-13 Joel Brobecker <brobecker@adacore.com>
5284
5285 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5286 * ia64-tdep.h (struct frame_info): forward declaration.
5287 (struct gdbarch_tdep): Add field size_of_register_frame.
5288 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5289 to determine the size of the register frame.
5290 (ia64_size_of_register_frame): New function.
5291 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5292 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5293 (IA64_HPUX_UREG_REASON): New macro.
5294 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5295 New functions.
5296 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5297 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5298 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5299 objects.
5300
92c9a463
JB
53012011-01-13 Joel Brobecker <brobecker@adacore.com>
5302
5303 Add support for ia64-hpux.
5304 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5305 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5306
5307 * configure.host: Add handling for ia64-hpux hosts. Add associated
5308 floatformats.
5309 * configure.tgt: Add handling for ia64-hpux targets.
5310 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5311 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5312 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5313
f688d93f
JB
53142011-01-13 Joel Brobecker <brobecker@adacore.com>
5315
5316 [ttrace] Compute thread list immediately after attach.
5317 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5318 New subprogram.
5319 (inf_ttrace_attach): Use it.
5320
1b89e62f
JB
53212011-01-13 Joel Brobecker <brobecker@adacore.com>
5322
5323 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5324 if we could not determine the frame's function address. Instead,
5325 use the frame's PC, and then continue.
5326
3e5e6e2a
JB
53272011-01-13 Joel Brobecker <brobecker@adacore.com>
5328
5329 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5330 not already defined.
5331
825d6d8a
JB
53322011-01-13 Joel Brobecker <brobecker@adacore.com>
5333
5334 * ia64-tdep.c (ia64_struct_type_p): New function.
5335 (ia64_extract_return_value): Handle integral values that are
5336 less than 8 bytes long.
5337 (ia64_push_dummy_call): Likewise.
5338
7458e667
JB
53392011-01-13 Joel Brobecker <brobecker@adacore.com>
5340
5341 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5342 floatformat_ia64_ext.
5343 (floatformat_ia64_ext_big): New static const.
5344 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5345
1b05df00
TT
53462011-01-12 Tom Tromey <tromey@redhat.com>
5347
5348 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5349 messages.
5350 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5351 (mi_cmd_thread_list_ids): Likewise.
5352 (mi_cmd_data_list_changed_registers): Likewise.
5353 (mi_cmd_data_list_register_values): Likewise.
5354 (mi_cmd_data_write_register_values): Likewise.
5355 (mi_cmd_data_evaluate_expression): Likewise.
5356 (mi_cmd_data_read_memory): Likewise.
5357 (mi_cmd_data_read_memory_bytes): Likewise.
5358 (mi_cmd_data_write_memory): Likewise.
5359 (mi_cmd_enable_timings): Likewise.
5360 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5361 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5362 (mi_cmd_var_delete): Likewise.
5363 (mi_cmd_var_set_format): Likewise.
5364 (mi_cmd_var_show_format): Likewise.
5365 (mi_cmd_var_info_num_children): Likewise.
5366 (mi_cmd_var_list_children): Likewise.
5367 (mi_cmd_var_info_type): Likewise.
5368 (mi_cmd_var_info_expression): Likewise.
5369 (mi_cmd_var_show_attributes): Likewise.
5370 (mi_cmd_var_assign): Likewise.
5371 (mi_cmd_var_update): Likewise.
5372 (mi_cmd_enable_pretty_printing): Likewise.
5373 (mi_cmd_var_set_update_range): Likewise.
5374 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5375 messages.
5376 (mi_cmd_target_file_put): Likewise.
5377 (mi_cmd_target_file_delete): Likewise.
5378 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5379 messages.
5380 (mi_cmd_stack_info_depth): Likewise.
5381 (mi_cmd_stack_list_locals): Likewise.
5382 (mi_cmd_stack_list_args): Likewise.
5383 (mi_cmd_stack_select_frame): Likewise.
5384 (mi_cmd_stack_select_frame): Likewise.
5385 (mi_cmd_stack_info_frame): Likewise.
5386 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5387 messages.
5388 (mi_cmd_file_list_exec_source_files): Likewise.
5389 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5390 (mi_cmd_env_cd): Likewise.
5391 (mi_cmd_env_path): Likewise.
5392 (mi_cmd_env_dir): Likewise.
5393 (mi_cmd_inferior_tty_show): Likewise.
5394 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5395 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5396 (mi_cmd_break_watch): Likewise.
5397
ad422571
TJB
53982011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5399
5400 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5401 (ppc_linux_insert_hw_breakpoint): Likewise.
5402 (ppc_linux_remove_hw_breakpoint): Likewise.
5403 (ppc_linux_insert_watchpoint): Likewise.
5404
c2ff108b
JK
54052011-01-12 Andrew Burgess <aburgess@broadcom.com>
5406 Jan Kratochvil <jan.kratochvil@redhat.com>
5407
5408 PR fortran/11104 and DWARF unbound arrays detection.
5409 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5410 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5411 unspecified upper bound.
5412 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5413 variables array_size_array, tmp_type and offset_item. New variable
5414 array. Remove call to f77_get_upperbound. New variables array_type
5415 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5416 the final call to deprecated_set_value_type.
5417
41e8491f
JK
54182011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5419
5420 Make value allocations more lazy.
5421 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5422 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 5423 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
5424 instead of allocate_value and set_value_lazy.
5425 * findvar.c (value_of_register_lazy): Likewise.
5426 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 5427 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
5428 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5429 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5430 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5431 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5432 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5433 the end, remove set_value_lazy there.
5434 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5435 instead of allocate_value and set_value_lazy when possible.
5436 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5437 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5438 of allocate_value and set_value_lazy.
5439 (value_from_contents_and_address): Use allocate_value_lazy instead of
5440 allocate_value and set_value_lazy when possible.
5441
b716877b
AB
54422011-01-12 Andrew Burgess <aburgess@broadcom.com>
5443
5444 * disasm.c (dump_insns): Support dumping opcodes for MI.
5445 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5446 dumping of instruction opcodes.
5447
d5ae309f
JB
54482011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5449
5450 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5451 appropiately.
5452
98871305
TT
54532011-01-11 Tom Tromey <tromey@redhat.com>
5454
5455 * thread.c (do_captured_thread_select): Emit newline before
5456 printing frame.
5457
c378eb4e
MS
54582011-01-11 Michael Snyder <msnyder@vmware.com>
5459
5460 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5461 * score-tdep.c: Ditto.
5462 * score-tdep.h: Ditto.
5463 * ser-base.c: Ditto.
5464 * ser-go32.c: Ditto.
5465 * serial.c: Ditto.
5466 * serial.h: Ditto.
5467 * ser-mingw.c: Ditto.
5468 * ser-pipe.c: Ditto.
5469 * ser-tcp.c: Ditto.
5470 * ser-unix.c: Ditto.
5471 * sh64-tdep.c: Ditto.
5472 * shnbsd-nat.c: Ditto.
5473 * sh-tdep.c: Ditto.
5474 * sh-tdep.h: Ditto.
5475 * solib.c: Ditto.
5476 * solib-darwin.c: Ditto.
5477 * solib-frv.c: Ditto.
5478 * solib.h: Ditto.
5479 * solib-irix.c: Ditto.
5480 * solib-osf.c: Ditto.
5481 * solib-pa64.c: Ditto.
5482 * solib-som.c: Ditto.
5483 * solib-spu.c: Ditto.
5484 * solib-sunos.c: Ditto.
5485 * solib-svr4.c: Ditto.
5486 * solist.h: Ditto.
5487 * sol-thread.c: Ditto.
5488 * somread.c: Ditto.
5489 * source.c: Ditto.
5490 * source.h: Ditto.
5491 * sparc64-linux-tdep.c: Ditto.
5492 * sparc64-tdep.c: Ditto.
5493 * sparc-linux-nat.c: Ditto.
5494 * sparc-linux-tdep.c: Ditto.
5495 * sparc-sol2-nat.c: Ditto.
5496 * sparc-sol2-tdep.c: Ditto.
5497 * sparc-tdep.c: Ditto.
5498 * sparc-tdep.h: Ditto.
5499 * spu-tdep.c: Ditto.
5500 * stabsread.c: Ditto.
5501 * stabsread.h: Ditto.
5502 * stack.c: Ditto.
5503 * symfile.c: Ditto.
5504 * symfile.h: Ditto.
5505 * symmisc.c: Ditto.
5506 * symtab.c: Ditto.
5507 * symtab.h: Ditto.
5508 * target.c: Ditto.
5509 * target-descriptions.c: Ditto.
5510 * target-descriptions.h: Ditto.
5511 * target.h: Ditto.
5512 * target-memory.c: Ditto.
5513 * terminal.h: Ditto.
5514 * thread.c: Ditto.
5515 * top.c: Ditto.
5516 * tracepoint.c: Ditto.
5517 * tracepoint.h: Ditto.
5518 * trad-frame.h: Ditto.
5519 * typeprint.c: Ditto.
5520
581e13c1
MS
55212011-01-11 Michael Snyder <msnyder@vmware.com>
5522
5523 * ui-file.c: Comment cleanup, mostly periods and spaces.
5524 * ui-file.h: Ditto.
5525 * ui-out.c: Ditto.
5526 * ui-out.h: Ditto.
5527 * utils.c: Ditto.
5528 * v850-tdep.c: Ditto.
5529 * valarith.c: Ditto.
5530 * valops.c: Ditto.
5531 * valprint.c: Ditto.
5532 * valprint.h: Ditto.
5533 * value.c: Ditto.
5534 * value.h: Ditto.
5535 * varobj.c: Ditto.
5536 * varobj.h: Ditto.
5537 * vax-tdep.c: Ditto.
5538 * vec.c: Ditto.
5539 * vec.h: Ditto.
5540 * version.h: Ditto.
5541 * windows-nat.c: Ditto.
5542 * windows-tdep.c: Ditto.
5543 * xcoffread.c: Ditto.
5544 * xcoffsolib.c: Ditto.
5545 * xml-support.c: Ditto.
5546 * xstormy16-tdep.c: Ditto.
5547 * xtensa-tdep.c: Ditto.
5548 * xtensa-tdep.h: Ditto.
5549
90e4670f
TJB
55502011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5551
5552 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5553 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5554
e09342b5
TJB
55552011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5556 Thiago Jung Bauermann <bauerman@br.ibm.com>
5557
5558 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 5559 * breakpoint.h
e09342b5
TJB
5560 (struct breakpoint_ops) <resources_needed>: New method.
5561 Initialize to NULL in all existing breakpoint_ops instances.
5562 (struct breakpoint) <exact>: New field.
5563 (target_exact_watchpoints): Declare external global.
5564 * breakpoint.c (target_exact_watchpoints): New global flag.
5565 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5566 b->enable_state to bp_enabled before calling
5567 hw_watchpoint_used_count.
5568 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5569 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5570 if available.
5571 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5572 if the watchpoint is exact.
5573 (resources_needed_watchpoint): New function.
5574 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5575 (watch_command_1): Set b->exact if the user asked for an exact
5576 watchpoint and one can be set.
5577 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5578 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5579 the user asks for an exact watchpoint and one can be set. Return
5580 number of needed debug registers to watch the expression.
5581 * gdbtypes.c (is_scalar_type): New function, based on
5582 valprint.c:scalar_type_p.
5583 (is_scalar_type_recursive): New function.
5584 * gdbtypes.h (is_scalar_type_recursive): Declare.
5585 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5586 handle regions when ranged watchpoints are available.
5587 (create_watchpoint_request): New function.
5588 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5589 create_watchpoint_request.
5590 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5591 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5592 `set powerpc' and `show powerpc' commands.
5593 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5594 Mention documentation comment in the target macro.
5595 (target_region_ok_for_hw_watchpoint): Document return value.
5596
9fa40276
TJB
55972011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5598
5599 * breakpoint.c (update_watchpoint): Decide on using a software or
5600 hardware watchpoint after the bp_locations are created.
5601
77b06cd7
TJB
56022010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5603
5604 Convert hardware watchpoints to use breakpoint_ops.
5605 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5606 <insert_location>: ... this. Return int instead of void.
5607 Accept pointer to struct bp_location instead of pointer to
5608 struct breakpoint. Adapt all implementations.
f2eb0bc8 5609 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
5610 <remove_location>: ... this. Accept pointer to struct bp_location
5611 instead of pointer to struct breakpoint. Adapt all implementations.
5612 * breakpoint.c (insert_catchpoint): Delete function.
5613 (insert_bp_location): Call the watchpoint or catchpoint's
5614 breakpoint_ops.insert method.
5615 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5616 breakpoint_ops.remove method.
5617 (insert_watchpoint, remove_watchpoint): New functions.
5618 (watchpoint_breakpoint_ops): New structure.
5619 (watch_command_1): Initialize the OPS field.
5620 * inf-child.c (inf_child_insert_fork_catchpoint)
5621 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5622 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5623 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5624 Delete functions.
5625 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5626 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5627 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5628 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5629 * target.c (update_current_target): Change default implementation of
5630 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5631 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5632 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5633 to_set_syscall_catchpoint to return_one.
5634 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5635 (debug_to_insert_exec_catchpoint): Report return value.
5636 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5637 (to_insert_exec_catchpoint): Change declaration to return int instead
5638 of void.
5639
9b20d036
MS
56402011-01-11 Michael Snyder <msnyder@vmware.com>
5641
5642 * arm-tdep.c: Internationalization.
5643 * c-lang.c: Ditto.
5644 * charset.c: Ditto.
5645 * fork-child.c: Ditto.
5646 * nto-procfs.c: Ditto.
5647 * ppc-sysv-tdep.c: Ditto.
5648 * procfs.c: Ditto.
5649 * remote-mips.c: Ditto.
5650 * remote.c: Ditto.
5651 * rs6000-nat.c: Ditto.
5652 * rs6000-tdep.c: Ditto.
5653 * target.c: Ditto.
5654 * valops.c: Ditto.
5655 * value.c: Ditto.
5656 * xml-support.c: Ditto.
5657 * mi/mi-cmd-break.c: Ditto.
5658 * mi/mi-cmd-var.c: Ditto.
5659 * mi/mi-interp.c: Ditto.
5660 * mi/mi-main.c: Ditto.
5661
dae477fe
AB
56622011-01-11 Andrew Burgess <aburgess@broadcom.com>
5663
5664 * remote-sim.c (gdbsim_store_register): Update API to
5665 sim_store_register to check more error conditions.
5666
0df8b418
MS
56672011-01-10 Michael Snyder <msnyder@vmware.com>
5668
5669 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5670 * nto-tdep.c: Ditto.
5671 * nto-tdep.h: Ditto.
5672 * objc-exp.y: Ditto.
5673 * objc-lang.c: Ditto.
5674 * objfiles.c: Ditto.
5675 * objfiles.h: Ditto.
5676 * observer.c: Ditto.
5677 * opencl-lang.c: Ditto.
5678 * osabi.c: Ditto.
5679 * parse.c: Ditto.
5680 * parser-defs.h: Ditto.
5681 * p-exp.y: Ditto.
5682 * p-lang.c: Ditto.
5683 * posix-hdep.c: Ditto.
5684 * ppcbug-rom.c: Ditto.
5685 * ppc-linux-nat.c: Ditto.
5686 * ppc-linux-tdep.c: Ditto.
5687 * ppc-linux-tdep.h: Ditto.
5688 * ppcnbsd-tdep.c: Ditto.
5689 * ppcobsd-tdep.c: Ditto.
5690 * ppcobsd-tdep.h: Ditto.
5691 * ppc-sysv-tdep.c: Ditto.
5692 * ppc-tdep.h: Ditto.
5693 * printcmd.c: Ditto.
5694 * proc-abi.c: Ditto.
5695 * proc-flags.c: Ditto.
5696 * procfs.c: Ditto.
5697 * proc-utils.h: Ditto.
5698 * progspace.h: Ditto.
5699 * prologue-value.c: Ditto.
5700 * prologue-value.h: Ditto.
5701 * psympriv.h: Ditto.
5702 * psymtab.c: Ditto.
5703 * p-typeprint.c: Ditto.
5704 * p-valprint.c: Ditto.
5705 * ravenscar-sparc-thread.c: Ditto.
5706 * ravenscar-thread.c: Ditto.
5707 * ravenscar-thread.h: Ditto.
5708 * record.c: Ditto.
5709 * regcache.c: Ditto.
5710 * regcache.h: Ditto.
5711 * remote.c: Ditto.
5712 * remote-fileio.c: Ditto.
5713 * remote-fileio.h: Ditto.
5714 * remote.h: Ditto.
5715 * remote-m32r-sdi.c: Ditto.
5716 * remote-mips.c: Ditto.
5717 * remote-sim.c: Ditto.
5718 * rs6000-aix-tdep.c: Ditto.
5719 * rs6000-nat.c: Ditto.
5720 * rs6000-tdep.c: Ditto.
5721
0d7a18f7
MS
57222011-01-10 Michael Snyder <msnyder@vmware.com>
5723
5724 * charset.c (validate): Internationalization.
5725 * coffread.c (read_one_sym): Ditto.
5726 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5727 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5728 * inflow.c (new_tty): Ditto.
5729 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5730 * m32c-tdep.c (m32c_return_value): Ditto.
5731 * mep-tdep.c (mep_store_return_value): Ditto.
5732 * score-tdep.c (score7_fetch_insn): Ditto.
5733 * ser-mingw.c (pipe_windows_open): Ditto.
5734 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5735 * spu-tdep.c (spu_register_type): Ditto.
5736 * tracepoint.c (trace_find_command): Ditto.
5737 * valarith.c (value_pos): Ditto.
5738
9a153e0b
JB
57392011-01-10 Joel Brobecker <brobecker@adacore.com>
5740
5741 * ada-valprint.c (printstr): Minor comment reformatting.
5742
35ecd2d6
MS
57432011-01-08 Michael Snyder <msnyder@vmware.com>
5744
5745 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5746 markup.
5747
1777feb0
MS
57482011-01-08 Michael Snyder <msnyder@vmware.com>
5749
5750 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5751 * hppa-hpux-tdep.c: Ditto.
5752 * hppa-linux-nat.c: Ditto.
5753 * hppa-linux-tdep.c: Ditto.
5754 * hppanbsd-tdep.c: Ditto.
5755 * hppa-tdep.c: Ditto.
5756 * hppa-tdep.h: Ditto.
5757 * hpux-thread.c: Ditto.
5758 * i386-cygwin-tdep.c: Ditto.
5759 * i386-darwin-nat.c: Ditto.
5760 * i386gnu-nat.c: Ditto.
5761 * i386-linux-nat.c: Ditto.
5762 * i386-linux-tdep.c: Ditto.
5763 * i386-nat.c: Ditto.
5764 * i386-nat.h: Ditto.
5765 * i386nbsd-tdep.c: Ditto.
5766 * i386-sol2-nat.c: Ditto.
5767 * i386-stub.c: Ditto.
5768 * i386-tdep.c: Ditto.
5769 * i386-tdep.h: Ditto.
5770 * i387-tdep.c: Ditto.
5771 * ia64-linux-nat.c: Ditto.
5772 * ia64-linux-tdep.c: Ditto.
5773 * ia64-tdep.c: Ditto.
5774 * infcall.c: Ditto.
5775 * infcall.h: Ditto.
5776 * infcmd.c: Ditto.
5777 * inferior.c: Ditto.
5778 * inferior.h: Ditto.
5779 * infloop.c: Ditto.
5780 * inflow.c: Ditto.
5781 * infrun.c: Ditto.
5782 * interps.c: Ditto.
5783 * interps.h: Ditto.
5784 * iq2000-tdep.c: Ditto.
5785 * irix5-nat.c: Ditto.
5786 * jit.c: Ditto.
5787 * jit.h: Ditto.
5788 * jv-exp.y: Ditto.
5789 * jv-lang.c: Ditto.
5790 * jv-lang.h: Ditto.
5791 * jv-typeprint.c: Ditto.
5792 * jv-valprint.c: Ditto.
5793 * language.c: Ditto.
5794 * language.h: Ditto.
5795 * linespec.c: Ditto.
5796 * linux-fork.c: Ditto.
5797 * linux-nat.c: Ditto.
5798 * linux-thread-db.c: Ditto.
5799 * lm32-tdep.c: Ditto.
5800
025bb325
MS
58012011-01-08 Michael Snyder <msnyder@vmware.com>
5802
5803 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5804 * m2-lang.c: Ditto.
5805 * m2-typeprint.c: Ditto.
5806 * m2-valprint.c: Ditto.
5807 * m32c-tdep.c: Ditto.
5808 * m32r-linux-nat.c: Ditto.
5809 * m32r-rom.c: Ditto.
5810 * m32r-tdep.c: Ditto.
5811 * m32r-tdep.h: Ditto.
5812 * m68hc11-tdep.c: Ditto.
5813 * m58klinux-nat.c: Ditto.
5814 * m68k-tdep.c: Ditto.
5815 * m88k-tdep.c: Ditto.
5816 * m88k-tdep.h: Ditto.
5817 * machoread.c: Ditto.
5818 * macrocmd.c: Ditto.
5819 * macroexp.c: Ditto.
5820 * macrotab.c: Ditto.
5821 * main.c: Ditto.
5822 * maint.c: Ditto.
5823 * mdebugread.c: Ditto.
5824 * mdebugread.h: Ditto.
5825 * memattr.c: Ditto.
5826 * memattr.h: Ditto.
5827 * memory-map.h: Ditto.
5828 * mep-tdep.c: Ditto.
5829 * microblaze-rom.c: Ditto.
5830 * microblaze-tdep.c: Ditto.
5831 * minsyms.c: Ditto.
5832 * mips-irix-tdep.c: Ditto.
5833 * mips-linux-nat.c: Ditto.
5834 * mips-linux-tdep.c: Ditto.
5835 * mips-linux-tdep.h: Ditto.
5836 * mipsnbsd-nat.c: Ditto.
5837 * mipsnbsd-tdep.c: Ditto.
5838 * mipsread.c: Ditto.
5839 * mips-tdep.c: Ditto.
5840 * mips-tdep.h: Ditto.
5841 * mn10300-linux-tdep.c: Ditto.
5842 * mn10300-tdep.c: Ditto.
5843 * mn10300-tdep.h: Ditto.
5844 * monitor.c: Ditto.
5845 * monitor.h: Ditto.
5846 * moxie-tdep.c: Ditto.
5847 * moxie-tdep.h: Ditto.
5848 * mt-tdep.c: Ditto.
5849
1642781b
MF
58502011-01-08 Mike Frysinger <vapier@gentoo.org>
5851
5852 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5853
394b0adb
JB
58542011-01-08 Robert Millan <rmh@gnu.org>
5855
5856 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5857
b670013c
MS
58582011-01-07 Michael Snyder <msnyder@vmware.com>
5859
5860 * charset.c (_initialize_charset): Fix typo in string.
5861
a743e542
MS
58622011-01-07 Michael Snyder <msnyder@vmware.com>
5863
5864 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5865 for i18n.
f2eb0bc8 5866 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
5867 Split line so that operator goes to beginning of line.
5868 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5869 assignment out of if statement.
5870
0963b4bd
MS
58712011-01-07 Michael Snyder <msnyder@vmware.com>
5872
5873 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5874 * ada-lang.h: Ditto.
5875 * ada-tasks.c: Ditto.
5876 * ada-valprint.c: Ditto.
5877 * aix-threads.c: Ditto.
5878 * alpha-linux-nat.c: Ditto.
5879 * alpha-linux-tdep.c: Ditto.
5880 * alpha-mdebug-tdep.c: Ditto.
5881 * alpha-nat.c: Ditto.
5882 * alpha-osf1-tdep.c: Ditto.
5883 * alpha-tdep.c: Ditto.
5884 * alphabsd-nat.c: Ditto.
5885 * alphabsd-tdep.c: Ditto.
5886 * amd64-darwin-tdep.c: Ditto.
5887 * amd64-linux-nat.c: Ditto.
5888 * amd64-linux-tdep.c: Ditto.
5889 * amd64-sol2-tdep.c: Ditto.
5890 * amd64-tdep.c: Ditto.
5891 * amd64-fbsd-tdep.c: Ditto.
5892 * amd64-nbsd-tdep.c: Ditto.
5893 * amd64-obsd-tdep.c: Ditto.
5894 * amd64-linux-nat.c: Ditto.
5895 * amd64-linux-tdep.c: Ditto.
5896 * arm-tdep.c: Ditto.
5897 * arm-tdep.h: Ditto.
5898 * armnbsd-nat.c: Ditto.
5899 * avr-tdep.c: Ditto.
5900 * bfin-tdep.c: Ditto.
5901 * bsd-kvm.c: Ditto.
5902 * c-typeprintc: Ditto.
5903 * c-valprint.c: Ditto.
5904 * coff-pe-read.h: Ditto.
5905 * coffreead.c: Ditto.
5906 * cris-tdep.c: Ditto.
5907 * d-lang.c: Ditto.
5908 * darwin-nat-info.c: Ditto.
5909 * darwin-nat.c: Ditto.
5910 * dbug-rom.c: Ditto.
5911 * dbxread.c: Ditto.
5912 * dcache.c: Ditto.
5913 * dcache.h: Ditto.
5914 * dec-thread.c: Ditto.
5915 * defs.h: Ditto.
5916 * demangle.c: Ditto.
5917 * dicos-tdep.c: Ditto.
5918 * dictionary.c: Ditto.
5919 * dictionary.h: Ditto.
5920 * dink32-rom.c: Ditto.
5921 * disasm.c: Ditto.
5922 * doublest.c: Ditto.
5923 * dsrec.c: Ditto.
5924 * dummy-frame.c: Ditto.
5925 * dwarf2-frame.c: Ditto.
5926 * dwarf2expr.c: Ditto.
5927 * dwarf2loc.c: Ditto.
5928 * dwarf2read.c: Ditto.
5929 * elfread.c: Ditto.
5930 * environ.c: Ditto.
5931 * eval.c: Ditto.
5932 * event-top.h: Ditto.
5933 * exceptions.c: Ditto.
5934 * exceptions.h: Ditto.
5935 * exec.c: Ditto.
5936 * expprint.c: Ditto.
5937 * expression.h: Ditto.
5938 * f-exp.y: Ditto.
5939 * f-lang.c: Ditto.
5940 * f-lang.h: Ditto.
5941 * f-typeprint.c: Ditto.
5942 * f-valprint.c: Ditto.
5943 * fbsd-nat.c: Ditto.
5944 * findvar.c: Ditto.
5945 * fork-child.c: Ditto.
5946 * frame.c: Ditto.
5947 * frame.h: Ditto.
5948 * frv-linux-tdep.c: Ditto.
5949 * frv-tdep.c: Ditto.
5950 * gcore.c: Ditto.
5951 * gdb-stabs.h: Ditto.
5952 * gdb_assert.h: Ditto.
5953 * gdb_string.h: Ditto.
5954 * gdb_thread_db.h: Ditto.
5955 * gdb_wait.h: Ditto.
5956 * gdbarch.sh: Ditto.
5957 * gdbcore.h: Ditto.
5958 * gdbthread.h: Ditto.
5959 * gdbtypes.c: Ditto.
5960 * gdbtypes.h: Ditto.
5961 * gnu-nat.c: Ditto.
5962 * gnu-nat.h: Ditto.
5963 * gnu-v2-abi.c: Ditto.
5964 * gnu-v3-abi.c: Ditto.
5965 * go32-nat.c: Ditto.
5966 * gdbarch.c: Regenerate.
5967 * gdbarch.h: Regenerate.
5968
ac74f770
MS
59692011-01-07 Michael Snyder <msnyder@vmware.com>
5970
5971 * ax-gdb.c: Adjust some long output strings.
5972 * breakpoint.c: Ditto.
5973 * charset.c: Ditto.
5974 * cp-abi.c: Ditto.
5975 * infcall.c: Ditto.
5976 * infrun.c: Ditto.
5977 * linux-nat.c: Ditto.
5978 * solib-pa64.c: Ditto.
5979 * solib-som.c: Ditto.
5980
d8e22779
TT
59812011-01-06 Tom Tromey <tromey@redhat.com>
5982
5983 PR python/12367:
5984 * NEWS: Add item.
5985 * python/python.c (GdbMethods): Add "newest_frame" method.
5986 * python/python-internal.h (gdbpy_newest_frame): Declare.
5987 * python/py-frame.c (gdbpy_newest_frame): New function.
5988
a255712f
PP
59892010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5990
5991 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5992 * jit.c (jit_debug): New variable.
5993 (show_jit_debug): New function.
5994 (struct target_buffer): Use ULONGEST.
5995 (bfd_open_from_target_memory): Likewise.
5996 (jit_register_code, jit_inferior_init): Add debug output.
5997 (_initialize_jit): Register "debug jit" command.
5998
ccfc3d6e
TT
59992011-01-06 Tom Tromey <tromey@redhat.com>
6000
6001 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6002 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6003 and ARCH_FRAME.
6004
57126e4a
TT
60052011-01-06 Tom Tromey <tromey@redhat.com>
6006
6007 * python/py-frame.c (frapy_block): Use get_frame_block.
6008
16dfc9ce
JB
60092011-01-06 Joel Brobecker <brobecker@adacore.com>
6010
6011 Do not stop on SIGPRIO signals by default
6012 * infrun.c (_initialize_infrun): Unset signal_stop and
6013 signal_print for TARGET_SIGNAL_PRIO.
6014
b1ce2347
JB
60152011-01-06 Joel Brobecker <brobecker@adacore.com>
6016
6017 * ada-tasks.c: Fix style violation in comment.
6018
8f7e195f
JB
60192011-01-06 Joel Brobecker <brobecker@adacore.com>
6020
6021 * linespec.c (decode_compound, find_method): Remove trailing \n
6022 at end of error string.
6023 * solib-irix.c (irix_current_sos): Likewise.
6024 * varobj.c (uninstall_variable): Likewise.
6025
e9bdf92c
JB
60262011-01-06 Joel Brobecker <brobecker@adacore.com>
6027
6028 * copyright.py: New script.
6029 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6030 Launch emacs without exec'ing. Call copyright.py afterwards.
6031
3e43a32a
MS
60322011-01-05 Michael Snyder <msnyder@vmware.com>
6033
6034 * addrmap.c: Shorten lines of >= 80 columns.
6035 * arch-utils.c: Ditto.
6036 * arch-utils.h: Ditto.
6037 * ax-gdb.c: Ditto.
6038 * ax-general.c: Ditto.
6039 * bcache.c: Ditto.
6040 * blockframe.c: Ditto.
6041 * breakpoint.c: Ditto.
6042 * buildsym.c: Ditto.
6043 * c-lang.c: Ditto.
6044 * c-typeprint.c: Ditto.
6045 * charset.c: Ditto.
6046 * coffread.c: Ditto.
6047 * command.h: Ditto.
6048 * corelow.c: Ditto.
6049 * cp-abi.c: Ditto.
6050 * cp-namespace.c: Ditto.
6051 * cp-support.c: Ditto.
6052 * dbug-rom.c: Ditto.
6053 * dbxread.c: Ditto.
6054 * defs.h: Ditto.
6055 * dfp.c: Ditto.
6056 * dfp.h: Ditto.
6057 * dictionary.c: Ditto.
6058 * disasm.c: Ditto.
6059 * doublest.c: Ditto.
6060 * dwarf2-frame.c: Ditto.
6061 * dwarf2expr.c: Ditto.
6062 * dwarf2loc.c: Ditto.
6063 * dwarf2read.c: Ditto.
6064 * elfread.c: Ditto.
6065 * eval.c: Ditto.
6066 * event-loop.c: Ditto.
6067 * event-loop.h: Ditto.
6068 * exceptions.h: Ditto.
6069 * exec.c: Ditto.
6070 * expprint.c: Ditto.
6071 * expression.h: Ditto.
6072 * f-lang.c: Ditto.
6073 * f-valprint.c: Ditto.
6074 * findcmd.c: Ditto.
6075 * frame-base.c: Ditto.
6076 * frame-unwind.c: Ditto.
6077 * frame-unwind.h: Ditto.
6078 * frame.c: Ditto.
6079 * frame.h: Ditto.
6080 * gcore.c: Ditto.
6081 * gdb-stabs.h: Ditto.
6082 * gdb_assert.h: Ditto.
6083 * gdb_dirent.h: Ditto.
6084 * gdb_obstack.h: Ditto.
6085 * gdbcore.h: Ditto.
6086 * gdbtypes.c: Ditto.
6087 * gdbtypes.h: Ditto.
6088 * inf-ttrace.c: Ditto.
6089 * infcall.c: Ditto.
6090 * infcmd.c: Ditto.
6091 * inflow.c: Ditto.
6092 * infrun.c: Ditto.
6093 * inline-frame.h: Ditto.
6094 * language.c: Ditto.
6095 * language.h: Ditto.
6096 * libunwind-frame.c: Ditto.
6097 * libunwind-frame.h: Ditto.
6098 * linespec.c: Ditto.
6099 * linux-nat.c: Ditto.
6100 * linux-nat.h: Ditto.
6101 * linux-thread-db.c: Ditto.
6102 * machoread.c: Ditto.
6103 * macroexp.c: Ditto.
6104 * macrotab.c: Ditto.
6105 * main.c: Ditto.
6106 * maint.c: Ditto.
6107 * mdebugread.c: Ditto.
6108 * memattr.c: Ditto.
6109 * minsyms.c: Ditto.
6110 * monitor.c: Ditto.
6111 * monitor.h: Ditto.
6112 * objfiles.c: Ditto.
6113 * objfiles.h: Ditto.
6114 * osabi.c: Ditto.
6115 * p-typeprint.c: Ditto.
6116 * p-valprint.c: Ditto.
6117 * parse.c: Ditto.
6118 * printcmd.c: Ditto.
6119 * proc-events.c: Ditto.
6120 * procfs.c: Ditto.
6121 * progspace.c: Ditto.
6122 * progspace.h: Ditto.
6123 * psympriv.h: Ditto.
6124 * psymtab.c: Ditto.
6125 * record.c: Ditto.
6126 * regcache.c: Ditto.
6127 * regcache.h: Ditto.
6128 * remote-fileio.c: Ditto.
6129 * remote.c: Ditto.
6130 * ser-mingw.c: Ditto.
6131 * ser-tcp.c: Ditto.
6132 * ser-unix.c: Ditto.
6133 * serial.c: Ditto.
6134 * serial.h: Ditto.
6135 * solib-frv.c: Ditto.
6136 * solib-irix.c: Ditto.
6137 * solib-osf.c: Ditto.
6138 * solib-pa64.c: Ditto.
6139 * solib-som.c: Ditto.
6140 * solib-sunos.c: Ditto.
6141 * solib-svr4.c: Ditto.
6142 * solib-target.c: Ditto.
6143 * solib.c: Ditto.
6144 * somread.c: Ditto.
6145 * source.c: Ditto.
6146 * stabsread.c: Ditto.
6147 * stabsread.c: Ditto.
6148 * stack.c: Ditto.
6149 * stack.h: Ditto.
6150 * symfile-mem.c: Ditto.
6151 * symfile.c: Ditto.
6152 * symfile.h: Ditto.
6153 * symmisc.c: Ditto.
6154 * symtab.c: Ditto.
6155 * symtab.h: Ditto.
6156 * target-descriptions.c: Ditto.
6157 * target-memory.c: Ditto.
6158 * target.c: Ditto.
6159 * target.h: Ditto.
6160 * terminal.h: Ditto.
6161 * thread.c: Ditto.
6162 * top.c: Ditto.
6163 * tracepoint.c: Ditto.
6164 * tracepoint.h: Ditto.
6165 * ui-file.c: Ditto.
6166 * ui-file.h: Ditto.
6167 * ui-out.h: Ditto.
6168 * user-regs.c: Ditto.
6169 * user-regs.h: Ditto.
6170 * utils.c: Ditto.
6171 * valarith.c: Ditto.
6172 * valops.c: Ditto.
6173 * valprint.c: Ditto.
6174 * valprint.h: Ditto.
6175 * value.c: Ditto.
6176 * varobj.c: Ditto.
6177 * varobj.h: Ditto.
6178 * vec.h: Ditto.
6179 * xcoffread.c: Ditto.
6180 * xcoffsolib.c: Ditto.
6181 * xcoffsolib.h: Ditto.
6182 * xml-syscall.c: Ditto.
6183 * xml-tdesc.c: Ditto.
6184
9a2b4c1b
MS
61852011-01-05 Michael Snyder <msnyder@vmware.com>
6186
6187 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6188 * cli/cli-decode.c: Ditto.
6189 * cli/cli-dump.c: Ditto.
6190 * cli/cli-logging.c: Ditto.
6191 * cli/cli-script.c: Ditto.
6192 * cli/cli-setshow.c: Ditto.
6193 * common/signals.c: Ditto.
6194 * mi/mi-cmd-break.c: Ditto.
6195 * mi/mi-cmd-disas.c: Ditto.
6196 * mi/mi-cmd-stack.c: Ditto.
6197 * mi/mi-cmd-var.c: Ditto.
6198 * mi/mi-cmds.c: Ditto.
6199 * mi/mi-common.h: Ditto.
6200 * mi/mi-console.c: Ditto.
6201 * mi/mi-interp.c: Ditto.
6202 * mi/mi-main.c: Ditto.
6203 * osf-share/cma_attr.c: Ditto.
6204 * osf-share/cma_deb_core.h: Ditto.
6205 * osf-share/cma_debug_client.h: Ditto.
6206 * osf-share/cma_handle.h: Ditto.
6207 * osf-share/cma_mutex.h: Ditto.
6208 * osf-share/cma_stack_int.h: Ditto.
6209 * osf-share/cma_tcb_defs.h: Ditto.
6210 * python/py-auto-load.c: Ditto.
6211 * python/py-breakpoint.c: Ditto.
6212 * python/py-cmd.c: Ditto.
6213 * python/py-frame.c: Ditto.
6214 * python/py-objfile.c: Ditto.
6215 * python/py-param.c: Ditto.
6216 * python/py-progspace.c: Ditto.
6217 * python/py-symbol.c: Ditto.
6218 * python/py-value.c: Ditto.
6219 * python/python-internal.h: Ditto.
6220 * python/python.c: Ditto.
6221 * tui/tui-data.c: Ditto.
6222 * tui/tui-disasm.c: Ditto.
6223 * tui/tui-hooks.c: Ditto.
6224 * tui/tui-io.c: Ditto.
6225 * tui/tui-layout.c: Ditto.
6226 * tui/tui-regs.c: Ditto.
6227 * tui/tui-source.c: Ditto.
6228 * tui/tui-stack.c: Ditto.
6229 * tui/tui-win.c: Ditto.
6230 * tui/tui-windata.c: Ditto.
6231 * tui/tui-winsource.c: Ditto.
6232
44944448
JB
62332011-01-05 Joel Brobecker <brobecker@adacore.com>
6234
6235 * configure.ac, gdb.1: Copyright year update.
6236
ebedcab5
JK
62372011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6240 this_pc_in_block, morestack_msym and morestack_name. Check for
6241 "__morestack" minimal symbol there.
6242
e5cc9f32
JB
62432011-01-03 Joel Brobecker <brobecker@adacore.com>
6244
6245 * symfile.c (find_sym_fns): Add call to dont_repeat.
6246
7b6bb8da
JB
62472011-01-01 Joel Brobecker <brobecker@adacore.com>
6248
6249 Copyright year update in most files (performed by copyright.sh).
6250
71ce852c
JB
62512011-01-01 Joel Brobecker <brobecker@adacore.com>
6252
6253 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 6254
c3c1ebe8 6255For older changes see ChangeLog-2010.
c906108c
SS
6256\f
6257Local Variables:
6258mode: change-log
6259left-margin: 8
6260fill-column: 74
6261version-control: never
57da7796 6262coding: utf-8
c906108c 6263End:
This page took 2.022614 seconds and 4 git commands to generate.