* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2
3 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
4 * p-valprint.c (pascal_type_print_base): Likewise.
5
6 2012-09-22 Yao Qi <yao@codesourcery.com>
7
8 * remote.c (remote_get_trace_status): Remove setting default
9 values of fields of 'ts'.
10
11 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 Fix internal error on canonicalization of clang types.
14 * cp-name-parser.y (operator): New comment at make_operator call for
15 new, delete, new[] and delete[].
16 (exp): Use "sizeof ". Add new comment at make_operator call.
17
18 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19
20 Fix disassemble without parameters in tailcall frame.
21 * cli/cli-cmds.c (disassemble_current_function): Use
22 get_frame_address_in_block.
23
24 2012-09-21 Tom Tromey <tromey@redhat.com>
25
26 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
27 TYPE_CODE_UNION>: Unify, removing a goto.
28
29 2012-09-21 Tom Tromey <tromey@redhat.com>
30
31 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
32
33 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
34
35 * findvar.c (read_frame_register_value): Mark the result value as
36 optimized out if any of the input registers have been optimized out.
37
38 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
39
40 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
41
42 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
43
44 * eval.c (evaluate_subexp_standard): Eliminate single-use
45 variable LOWER.
46
47 2012-09-21 Yao Qi <yao@codesourcery.com>
48
49 * mi/mi-interp.c: Declare mi_record_changed.
50 (mi_interpreter_init): Call observer_attach_record_changed.
51 (mi_record_changed): New.
52 * record.c (record_open): Call observer_notify_record_changed.
53 (cmd_record_stop): Call observer_notify_record_changed.
54 * NEWS: Mention it.
55
56 2012-09-20 Tom Tromey <tromey@redhat.com>
57
58 * NEWS: Update.
59 * python/python.c (finalize_python): New function.
60 (_initialize_python): Make a final cleanup.
61
62 2012-09-19 Doug Evans <dje@google.com>
63
64 * buildsym.h (param_symbols): Delete, unused.
65 (context_stack): Delete member "params", unused.
66 * buildsym.c (push_context): Update.
67 * dwarf2read.c (read_func_scope): Update.
68
69 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
70
71 * sh-tdep.c (sh_register_convert_to_virtual)
72 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
73 all callers. Just do a memcpy if not the little-endian case.
74
75 * h8300-tdep.c (h8300_gdbarch_init): Invoke
76 set_gdbarch_double_format and set_gdbarch_long_double_format.
77 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
78 set_gdbarch_double_format.
79 * sh-tdep.c (sh_gdbarch_init): Likewise.
80
81 * NEWS: Document the removal of SH's 'regs' command.
82 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
83 command.
84
85 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
86
87 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
88 `jump'.
89
90 2012-09-18 Joel Brobecker <brobecker@adacore.com>
91
92 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
93 language when iterating over symbols.
94
95 2012-09-18 Yao Qi <yao@codesourcery.com>
96
97 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
98 (mi_interpreter_init): Call observer_attach_tsv_created and
99 observer_attach_tsv_deleted.
100 (mi_tsv_created, mi_tsv_deleted): New.
101 * tracepoint.c (delete_trace_state_variable): Call
102 observer_notify_tsv_deleted.
103 (trace_variable_command): Call observer_notify_tsv_created.
104 (delete_trace_variable_command): Call
105 observer_notify_tsv_deleted.
106 (create_tsv_from_upload): Call observer_notify_tsv_created.
107 * NEWS: Mention it.
108
109 2012-09-18 Yao Qi <yao@codesourcery.com>
110
111 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
112 if traceframe changed.
113 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
114 "trace-find".
115 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
116 (mi_interpreter_init): Hook mi_traceframe_changed to observer
117 'traceframe_changed'.
118 (mi_traceframe_changed): New.
119 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
120 New field.
121 * NEWS: Mention the new MI notification.
122
123 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
124
125 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
126
127 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
130 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
131 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
132 Extend code also for PaX support. Convert all gdb_assert to warning
133 calls.
134
135 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 Implement auto-load user conveniences suggested by Doug Evans.
138 * auto-load.c: Include top.h.
139 (file_is_auto_load_safe): New variable advice_printed. Print advice.
140 (_initialize_auto_load): New variable scripts_directory_help. Mention
141 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
142 scripts-directory. Document in online help one can use also files for
143 set auto-load safe-path.
144 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
145 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
146
147 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
148
149 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
150 of LEN.
151
152 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
153
154 * m2-valprint.c (m2_print_array_contents): Eliminate variable
155 ELTLEN and use TYPE_LENGTH directly.
156 (m2_val_print): Likewise.
157 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
158 variable LEN and use TYPE_LENGTH directly.
159 (m68k_svr4_store_return_value): Likewise.
160 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
161 ARGLEN and use TYPE_LENGTH directly.
162 (mips_o64_push_dummy_call): Likewise.
163 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
164 variable LENGTH and use TYPE_LENGTH directly.
165 (s390_function_arg_float): Likewise.
166 (s390_function_arg_integer): Likewise.
167 (s390_push_dummy_call): Likewise.
168 (s390_return_value_convention): Likewise.
169 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
170 TYPE_LENGTH directly.
171
172 2012-09-17 Yao Qi <yao@codesourcery.com>
173
174 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
175 Update comment to add_setshow_integer_cmd.
176 * cli/cli-setshow.c (do_set_command): Handle case
177 'var_zuinteger_unlimited'.
178 (do_show_command): Likewise.
179 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
180 for command 'remotetimeout'.
181 * command.h (enum var_types): New zuinteger_unlimited. Update comment
182 to var_integer.
183 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
184 for command 'set listsize'.
185
186 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
187
188 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
189 variable LEN.
190
191 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
192
193 PR 14119
194 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
195 (frame_pop): Drop also TAILCALL_FRAME frames.
196 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
197
198 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
199 Pedro Alves <palves@redhat.com>
200
201 PR 14548
202 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
203 function start if we are already at function start. Both for
204 reverse-next and for reverse-step into function without line number
205 info.
206
207 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 Code cleanup - rename 'inline' depth to 'artificial' depth.
210 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
211 frame_id_artificial_p, extend the comment.
212 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
213 * frame.c (fprint_frame_id): Rename at a user, change debug output
214 text to "artificial=".
215 (skip_inlined_frames): Rename to ...
216 (skip_artificial_frames): ... here. Extend the comment.
217 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
218 (frame_id_inlined_p): Rename to ...
219 (frame_id_artificial_p): ... here. Rename at a user.
220 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
221 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
222 at a user.
223 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
224 Extend the comment.
225 (frame_id_inlined_p): Rename to ...
226 (frame_id_artificial_p): ... here.
227 * inline-frame.c (inline_frame_this_id): Rename at a user.
228
229 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
230
231 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
232 vector variables using vector_size syntax rather than array
233 syntax.
234
235 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
236
237 * valarith.c (value_concat): Replace unsafe ALLOCA with
238 XMALLOC/XFREE.
239
240 2012-09-14 Pedro Alves <palves@redhat.com>
241
242 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
243
244 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
245
246 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
247 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
248 data-directory as appropriate.
249
250 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
251
252 * printcmd.c (ui_printf): Eliminate single-use variable
253 PARAM_LEN.
254
255 2012-09-14 Yao Qi <yao@codesourcery.com>
256 Pedro Alves <palves@redhat.com>
257
258 * valops.c (value_assign): Move observer_notify_target_changed
259 below to replace reinit_frame_cache.
260
261 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
262
263 Refactor Python "gdb" module into a proper Python package, by
264 introducing a new "_gdb" module for code implemented in C, and
265 using reload/__import__ instead of exec.
266 * python/lib/gdb/__init__.py: Import * from _gdb.
267 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
268 prompt_hook, sys.argv): Moved from finish_python_initialization.
269 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
270 (packages, auto_load_packages): New list and function replacing
271 module_dict and auto-loading code, using __file__ instead of
272 gdb.PYTHONDIR and reload/__import__ instead of exec.
273 (GdbSetPythonDirectory): Replacing function of the same name
274 from finish_python_initialization, using reload/__import__ instead
275 of exec, as well as call auto_load_packages.
276 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
277 gdb_python_module and not gdb_module.
278 * python/python-internal.h (gdb_python_module): Declare.
279 * python/python.c (gdb_python_module): New global.
280 (before_prompt_hook): Check gdb_python_module and not gdb_module.
281 (_initialize_python): Rename gdb module to _gdb.
282 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
283 (finish_python_initialization): Move Python code to
284 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
285 __main__.
286
287 2012-09-13 Pedro Alves <palves@redhat.com>
288
289 * Makefile.in (COMMON_OBS): Add registry.o.
290 * registry.c: New file.
291 * registry.h (struct registry_container): Declare.
292 (registry_data_callback): New typedef.
293 (struct registry_data, struct registry_data_registration, struct
294 registry_data_registry): New type.
295 (register_data_with_cleanup, registry_alloc_data)
296 (registry_callback_adaptor, registry_clear_data)
297 (registry_container_free_data, registry_set_data, registry_data):
298 Declare.
299 (DEFINE_REGISTRY): Refactor structures and functions as shims over
300 the new common structures and functions.
301 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
302 callback typedefs.
303
304 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
305
306 * remote.c (remote_insert_hw_breakpoint): Throw exception if
307 there is an error inserting hardware breakpoints and use the
308 error message from the target.
309
310 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
311 Catch this exception and print the error message contained within. Do not
312 print the default hardware error breakpoint message in this case.
313
314 2012-09-12 Doug Evans <dje@google.com>
315
316 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
317 cu == NULL.
318
319 2012-09-11 Doug Evans <dje@google.com>
320
321 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
322 .gdb_index symbol attributes if there are none.
323
324 2012-09-11 Joel Brobecker <brobecker@adacore.com>
325
326 * symtab.h (struct minimal_symbol) [has_size]: New field.
327 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
328 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
329 * printcmd.c (build_address_symbolic): Only filter out zero-sized
330 minimal symbols if the symbol's size is actually known.
331 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
332 of msymbol's size field. Add comment.
333 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
334 SET_MSYMBOL_SIZE to set the minimal symbol size.
335
336 2012-09-11 Joel Brobecker <brobecker@adacore.com>
337
338 * minsyms.c (install_minimal_symbols): Use memset to fill entire
339 minimal_symbol struct object, rather than setting some of its
340 fields one by one.
341
342 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
343
344 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
345 passed_a_ptr flag when displaying typedef types.
346
347 2012-09-10 Joel Brobecker <brobecker@adacore.com>
348
349 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
350 the optimized_out flag is preserved.
351
352 2012-09-10 Anthony Green <green@moxielogic.com>
353
354 * moxie-tdep.c (moxie_analyze_prologue): Update for function
355 prologue changes in GCC.
356
357 2012-09-10 Keith Seitz <keiths@redhat.com>
358
359 PR gdb/13483
360 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
361 (BOOL_CONVERSION_BADNESS): ... this.
362 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
363 (rank_one_type): Allow all boolean conversions
364 permitted by the standard.
365
366 2012-09-06 Tom Tromey <tromey@redhat.com>
367
368 * python/py-newobjfileevent.c (create_new_objfile_event_object):
369 Don't decref py_objfile.
370
371 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
372
373 Do not enable -lmcheck by default when Python is enabled with
374 threading support.
375 * configure.ac: (python_has_threads) New variable, by testing
376 if WITH_THREAD is defined in Python.h.
377 Move --enable-lmcheck after --with-python.
378 Do not enable -lmcheck by default if python_has_threads=yes.
379 Warn if --enable-lmcheck and python_has_threads=yes.
380 * configure: Regenerate.
381
382 2012-08-31 Yao Qi <yao@codesourcery.com>
383
384 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
385 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
386 Update some commands.
387 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
388 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
389 to 1.
390
391 2012-08-31 Yao Qi <yao@codesourcery.com>
392
393 * mi/mi-cmds.c (mi_cmds): Add 'static'.
394
395 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
396
397 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
398
399 2012-08-29 Doug Evans <dje@google.com>
400
401 * main.c (print_gdb_help): Remove reference to
402 --use-deprecated-index-sections.
403
404 2012-08-28 Yao Qi <yao@codesourcery.com>
405
406 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
407 (init_cmds): Call add_setshow_uinteger_cmd for command
408 'max-user-call-depth'.
409 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
410 declaration of 'max_user_call_depth'.
411 * frame.c (backtrace_limit): Add 'unsigned'.
412 (_initialize_frame): Call add_setshow_uinteger_cmd for command
413 'limit'.
414 * remote.c (remoteaddresssize): Add 'unsigned'.
415 (remote_address_masked): Change local var 'address_size' to
416 'unsigned'.
417 (_initialize_remote): Call add_setshow_uinteger_cmd for
418 'remoteaddresssize'.
419 * top.c (history_size): Add 'unsigned'.
420 (show_commands): Change local variables to 'unsigned'.
421 (set_history_size_command): Don't check history_size is negative.
422 Adjust the condition to call unstifle_history and set history_size
423 to UNIT_MAX.
424
425 2012-08-28 Pedro Alves <palves@redhat.com>
426
427 PR gdb/14428
428
429 * infcmd.c (default_print_one_register_info): New, factored out
430 from default_print_registers_info.
431 (default_print_registers_info): Use it. Mark value unavailable if
432 necessary.
433 (registers_info): Print user registers with
434 default_print_one_register_info.
435
436 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
437
438 PR tui/14486
439 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
440 is not NULL before referencing it.
441
442 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
445 variable pc. Call find_pc_line instead of find_pc_overlay, restore
446 original PC for it.
447
448 2012-08-27 Eli Zaretskii <eliz@gnu.org>
449 Jan Kratochvil <jan.kratochvil@redhat.com>
450
451 * auto-load.c (auto_load_objfile_script): Rename to ...
452 (auto_load_objfile_script_1): ... here, change variable realname to
453 parameter realname, document it, add return value, add variable retval.
454 (auto_load_objfile_script): New function.
455
456 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
459 followed by a whitespace.
460
461 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 PR gdb/14494.
464 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
465 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
466 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
467 here.
468
469 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
470
471 * memattr.c (create_mem_region): Fix memory region overlapping
472 checking.
473
474 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
475
476 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
477 with xmalloc/cleanup.
478 * mt-tdep.c (mt_push_dummy_call): Likewise.
479 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
480 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
481
482 2012-08-24 Yao Qi <yao@codesourcery.com>
483
484 * jv-exp.y (push_expression_name): Add "." at the end of error
485 message.
486
487 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
488
489 Document how to return from "python-interactive" to GDB.
490 * python/python.c (_initialize_python): Update documentation.
491
492 2012-08-23 Pedro Alves <palves@redhat.com>
493
494 * infrun.c (_initialize_infrun) <handle command help text>:
495 Mention that multiple signals are supported.
496
497 2012-08-23 Pedro Alves <palves@redhat.com>
498
499 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
500 string.
501
502 2012-08-23 Yao Qi <yao@codesourcery.com>
503
504 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
505 (tfind_1): Don't call registers_changed, set_traceframe_num,
506 and clear_traceframe_info.
507 Call set_current_traceframe.
508 (set_current_traceframe): call set_traceframe_num.
509
510 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
511
512 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
513 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
514
515 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
516
517 Enable readline in Python in a GDB-specific way and block the
518 standard Python readline module to prevent conflicts with GDB.
519 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
520 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
521 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
522 * python/py-gdb-readline.c: New file.
523 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
524 prototype.
525 * python/python.c (_initialize_python): Call
526 gdbpy_initialize_gdb_readline.
527
528 2012-08-22 Keith Seitz <keiths@redhat.com>
529
530 * defs.h: Include build-gnulib/config.h
531
532 2012-08-22 Joseph Myers <joseph@codesourcery.com>
533
534 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
535 and blx pc.
536
537 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
538
539 Add a new "python-interactive" command that starts a standard
540 Python interactive prompt with "pi" as alias, and add "py" as
541 an alias to "python".
542 * NEWS: Mention the new commands.
543 * python/python.c (eval_python_command): New function.
544 (python_interactive_command): For "python-interactive" with
545 arguments, call eval_python_command. For "python-interactive"
546 without arguments, call PyRun_InteractiveLoop.
547 (_initialize_python): Add "python-interactive" command with
548 "pi" as alias, and add "py" as an alias to "python".
549
550 2012-08-22 Tom Tromey <tromey@redhat.com>
551
552 * defs.h (quit_flag): Don't declare.
553 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
554 (QUIT): Use new functions.
555 * event-top.c (command_handler): Use clear_quit_flag.
556 (handle_sigint): Use set_quit_flag.
557 (async_request_quit): Use check_quit_flag. Don't check
558 immediate_quit.
559 * exceptions.c (throw_exception): Use clear_quit_flag.
560 * main.c (captured_main): Use clear_quit_flag.
561 * python/python.c (clear_quit_flag, set_quit_flag)
562 (check_quit_flag): New functions.
563 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
564 clear_quit_flag.
565 * remote.c (remote_wait_as): Use check_quit_flag,
566 clear_quit_flag.
567 (remote_start_remote): Call QUIT.
568 * symfile.c (load_progress): Use check_quit_flag.
569 * top.c (command_loop): Use clear_quit_flag.
570 (command_line_input): Call QUIT.
571 * utils.c (quit_flag): Conditionally define.
572 (clear_quit_flag, check_quit_flag, set_quit_flag): New
573 functions.
574 (prompt_for_continue): Call QUIT. Use quit, not
575 async_request_quit.
576 * remote-mips.c (mips_expect_timeout): Call QUIT.
577 * monitor.c (monitor_expect): Call QUIT.
578
579 2012-08-22 Tom Tromey <tromey@redhat.com>
580
581 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
582 (async_init_signals): Update.
583 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
584 (SIGWINCH_HANDLER_BODY): Remove.
585
586 2012-08-22 Tom Tromey <tromey@redhat.com>
587
588 * jit.c (jit_object_close_impl): Don't malloc the objfile
589 name.
590 * objfiles.c (allocate_objfile): Don't malloc the objfile
591 name.
592 (free_objfile): Don't free the objfile name.
593 * objfiles.h (struct objfile) <name>: Update comment.
594 * symfile.c (reread_symbols): Fix reference counting. Don't
595 malloc objfile name.
596
597 2012-08-22 Tom Tromey <tromey@redhat.com>
598
599 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
600 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
601 (symfile_bfd_open): Likewise.
602 (generic_load): Likewise.
603 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
604 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
605 gdb_bfd_open.
606 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
607 Use gdb_bfd_open.
608 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
609 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
610 (pmon_load_fast): Likewise.
611 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
612 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
613 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
614 (macho_check_dsym): Likewise.
615 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
616 (m32r_upload_command): Likewise.
617 * gdb_bfd.h (gdb_bfd_cache): Declare.
618 * gdb_bfd.c (struct gdb_bfd_data): New.
619 (gdb_bfd_cache): New global.
620 (struct gdb_bfd_cache_search): New.
621 (hash_bfd): New function.
622 (eq_bfd): Likewise.
623 (gdb_bfd_open): Likewise.
624 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
625 (gdb_bfd_unref): Remove closed BFD from cache. Update for
626 gdb_bfd_data.
627 * exec.c (exec_file_attach): Use gdb_bfd_open.
628 * dsrec.c (load_srec): Use gdb_bfd_open.
629
630 2012-08-22 Tom Tromey <tromey@redhat.com>
631
632 * dwarf2read.c (macro_start_file): Update.
633 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
634 (free_objfile_per_bfd_storage): Destroy macro_cache.
635 (allocate_objfile, free_objfile): Update.
636 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
637 New field.
638 (struct objfile) <macro_cache>: Remove.
639 * symfile.c (reread_symbols): Update.
640 * symmisc.c (print_symbol_bcache_statistics): Update.
641 (print_objfile_statistics): Update.
642
643 2012-08-22 Tom Tromey <tromey@redhat.com>
644
645 * elfread.c (elf_symtab_read): Update.
646 * objfiles.c (objfiles_bfd_data): New global.
647 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
648 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
649 (allocate_objfile, free_objfile): Update.
650 (_initialize_objfiles): Initialize objfiles_bfd_data.
651 * objfiles.h (struct objfile_per_bfd_storage): New.
652 (struct objfile) <per_bfd>: New field.
653 <filename_cache>: Remove.
654 (set_objfile_per_bfd): Declare.
655 * symfile.c (reread_symbols): Update. Call
656 set_objfile_per_bfd.
657 (allocate_symtab): Update.
658 * symmisc.c (print_symbol_bcache_statistics): Update.
659 (print_objfile_statistics): Print the size of the BFD obstack.
660
661 2012-08-22 Tom Tromey <tromey@redhat.com>
662
663 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
664 * gdb_bfd.c: Use DEFINE_REGISTRY.
665 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
666 (gdb_bfd_ref): Call bfd_alloc_data.
667 (gdb_bfd_unref): Call bfd_free_data.
668
669 2012-08-22 Tom Tromey <tromey@redhat.com>
670
671 * registry.h (struct registry_fields): New.
672 (REGISTRY_FIELDS): Redefine.
673 (REGISTRY_ACCESS_FIELD): New macro.
674 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
675 functions.
676
677 2012-08-22 Tom Tromey <tromey@redhat.com>
678
679 * auto-load.c (_initialize_auto_load): Update.
680 * solib-svr4.c (_initialize_svr4_solib): Update
681 * solib-dsbt.c (_initialize_dsbt_solib): Update.
682 * solib-darwin.c (_initialize_darwin_solib): Update.
683 * registry.h: New file.
684 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
685 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
686 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
687 (register_program_space_data_with_cleanup)
688 (register_program_space_data, program_space_alloc_data)
689 (clear_program_space_data, set_program_space_data)
690 (program_space_data): Don't declare.
691 * progspace.c: Use DEFINE_REGISTRY.
692 (struct program_space_data, struct
693 program_space_data_registration, struct
694 program_space_data_registry, program_space_data_registry)
695 (register_program_space_data_with_cleanup)
696 (register_program_space_data, program_space_alloc_data)
697 (program_space_free_data, clear_program_space_data)
698 (set_program_space_data, program_space_data): Remove.
699 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
700 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
701 (register_objfile_data_with_cleanup, register_objfile_data)
702 (clear_objfile_data, set_objfile_data, objfile_data): Don't
703 declare.
704 * objfiles.c: Use DEFINE_REGISTRY.
705 (struct objfile_data, struct objfile_data_registration, struct
706 objfile_data_registry, objfile_data_registry)
707 (register_objfile_data_with_cleanup, register_objfile_data)
708 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
709 (set_objfile_data, objfile_data): Remove.
710 (_initialize_objfiles): Update.
711 * jit.c (_initialize_jit): Update.
712 * inflow.c (_initialize_inflow): Update.
713 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
714 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
715 (register_inferior_data_with_cleanup, register_inferior_data)
716 (clear_inferior_data, set_inferior_data, inferior_data): Don't
717 declare.
718 * inferior.c: Use DEFINE_REGISTRY.
719 (struct inferior_data, struct inferior_data_registration, struct
720 inferior_data_registry, inferior_data_registry)
721 (register_inferior_data_with_cleanup, register_inferior_data)
722 (inferior_alloc_data, inferior_free_data clear_inferior_data)
723 (set_inferior_data, inferior_data): Remove.
724 * auxv.c (_initialize_auxv): Update.
725 * ada-lang.c (_initialize_ada_language): Update.
726 * breakpoint.c (_initialize_breakpoint): Update.
727 * i386-nat.c (i386_use_watchpoints): Update.
728
729 2012-08-22 Tom Tromey <tromey@redhat.com>
730
731 * exec.c (exec_close, exec_file_attach): Update.
732 (add_to_section_table): Initialize 'key' field.
733 (add_target_sections, remove_target_sections): Add 'key' argument.
734 * exec.h (add_target_sections, remove_target_sections): Add
735 'key' argument.
736 * solib.c (solib_map_sections, update_solib_list, clear_solib)
737 (reload_shared_libraries_1): Update.
738 * target.h (struct target_section) <key>: New field.
739
740 2012-08-22 Tom Tromey <tromey@redhat.com>
741
742 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
743
744 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
745
746 * symfile.c (allocate_symtab): Use host_address_to_string
747 function instead of cast of pointer to long which is not
748 compatible with x86_64-w64-mingw32 build.
749
750 2012-08-19 Andrew Pinski <apinski@cavium.com>
751
752 * mips-tdep.c (is_octeon): New function.
753 (is_octeon_bbit_op): New function.
754 (mips32_next_pc): Handle Octeon's bbit instructions.
755 (mips32_instruction_has_delay_slot): Likewise.
756
757 2012-08-19 Andrew Pinski <apinski@cavium.com>
758
759 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
760 before the function.
761
762 2012-08-19 Andrew Pinski <apinski@cavium.com>
763
764 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
765
766 2012-08-19 Keith Seitz <keiths@redhat.com>
767
768 PR c++/14365
769 * c-typeprint.c (c_type_print_varspec_prefix): Pass
770 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
771
772 2012-08-18 Eli Zaretskii <eliz@gnu.org>
773
774 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
775 The typo broke "make TAGS".
776
777 2012-08-17 Joel Brobecker <brobecker@adacore.com>
778
779 GDB 7.5 released.
780
781 2012-08-17 Keith Seitz <keiths@redhat.com>
782
783 PR c++/13356
784 * gdbtypes.c (strict_type_checking): New variable.
785 (show_strict_type_checking): New function.
786 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
787 if strict type checking is disabled.
788 (_initialize_gdbtypes): Add "check type" subcommand.
789 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
790
791 2012-08-17 Keith Seitz <keiths@redhat.com>
792
793 * language.h (type_mode): Remove.
794 (type_check): Remove.
795 (struct language_defn): Remove la_type_check.
796 (STRICT_TYPE): Remove unused macro.
797 (type_error): Remove.
798 * language.c (set_type_range_case): Renamed to ...
799 (set_range_case): ... this. Update all callers.
800 Remove type_mode/type_check.
801 (type_mode): Remove.
802 (type_check): Remove.
803 (show_type_command): Remove.
804 (set_type_command): Remove.
805 (language_info): Remove type checking output.
806 (type_error): Remove unused function.
807 (range_error): Update comment.
808 (unknown_language_defn): Remove la_type_check.
809 (auto_language_defn): Likewise.
810 (local_language_defn): Likewise.
811 (_initialize_language): Remove "check type" subcommand.
812 * ada-lang.c (ada_language_defn): Remove la_type_check.
813 * c-lang.c (c_language_defn): Likewise.
814 (cplus_language_defn): Likewise.
815 (asm_language_defn): Likewise.
816 (minimal_language_defn): Likewise.
817 * d-lang.c (d_language_defn): Likewise.
818 * f-lang.c (f_language_defn): Likewise.
819 * go-lang.c (go_language_defn): Likewise.
820 * jv-lang.c (java_language_defn): Likewise.
821 * m2-lang.c (m2_language_defn): Likewise.
822 * objc-lang.c (objc_language_defn): Likewise.
823 * opencl-lang.c (opencl_language_defn): Likewise.
824 * p-lang.c (pascal_language_defn): Likewise.
825
826 2012-08-16 Mike Frysinger <vapier@gentoo.org>
827
828 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
829
830 2012-08-16 Joel Brobecker <brobecker@adacore.com>
831
832 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
833 New function.
834 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
835 using the regache. Use ia64_hpux_get_register_from_save_state_t
836 to access the bsp and bspstore registers if not.
837
838 2012-08-16 Joel Brobecker <brobecker@adacore.com>
839
840 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
841 * breakpoint.c (detach_breakpoints): Change pid parameter into
842 a ptid. Adjust code accordingly.
843 * infrun.c (handle_inferior_event): Delete variable child_pid.
844 Update call to detach_breakpoints to pass the child ptid for
845 fork events.
846 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
847 assert that inferior_ptid's lwp is zero.
848 (linux_handle_extended_wait): Update call to detach_breakpoints.
849 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
850 detach_breakpoints.
851
852 2012-08-16 Joel Brobecker <brobecker@adacore.com>
853
854 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
855 parent, only call detach_breakpoints if tts.tts_event ==
856 TTEVT_VFORK.
857
858 2012-08-16 Joel Brobecker <brobecker@adacore.com>
859
860 * dwarf2-frame.c (dwarf2_frame_cache): Use
861 get_frame_address_in_block instead of get_frame_pc as
862 the bound for executing the frame's FDE.
863
864 2012-08-16 Yao Qi <yao@codesourcery.com>
865
866 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
867 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
868 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
869 (c_type_print_varspec_suffix): Likewise.
870 * eval.c (evaluate_subexp_standard): Likewise.
871 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
872 (f_type_print_varspec_suffix): Likewise.
873 * gdbtypes.c (is_scalar_type): Likewise.
874 (recursive_dump_type): Likewise.
875 * infcall.c (value_arg_coerce): Likewise.
876 * m2-valprint.c (m2_val_print): Likewise.
877 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
878 (pascal_type_print_varspec_suffix): Likewise.
879 (pascal_type_print_base): Likewise.
880 * p-valprint.c (pascal_val_print): Likewise.
881 (pascal_val_print): Likewise.
882 * valops.c (value_slice): Likewise.
883 * valprint.c (scalar_type_p): Likewise.
884 * valarith.c (value_bitstring_subscript): Remove.
885 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
886 Remove comment on TYPE_CODE_BITSTRING.
887
888 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
889 TYPE_CODE_BITSTRING.
890
891 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
892 slot 0.
893
894 2012-08-16 Yao Qi <yao@codesourcery.com>
895
896 * tracepoint.c (trace_find_none_command): Remove.
897 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
898
899 2012-08-16 Yao Qi <yao@codesourcery.com>
900
901 * remote.c (handle_notification): Remove parameter 'length'.
902 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
903
904 2012-08-15 Keith Seitz <keiths@redhat.com>
905
906 * gdbtypes.c (opaque_type_resolution): Make static.
907 Add missing comment.
908 (overload_debug): Add missing comment.
909 (show_opaque_type_resolution): Likewise.
910 (show_overload_debug): Likewise.
911 (print_bit_vector): Remove unnecessary forward declaration.
912 (print_arg_types): Likewise.
913 (dump_fn_fieldlists): Likewise.
914 (print_cplus_stuff): Likewise.
915
916 2012-08-15 Tom Tromey <tromey@redhat.com>
917
918 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
919 (gdb_bfd_ref): Initialize new field.
920 (gdb_bfd_unref): Unref the archive BFD.
921 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
922 parent archive.
923
924 2012-08-15 Tom Tromey <tromey@redhat.com>
925
926 PR python/14387:
927 * python/py-bpevent.c (create_breakpoint_event_object): Update
928 comment.
929 * python/py-event.c (evpy_add_attribute): Update comment.
930 * python/py-exitedevent.c (create_exited_event_object): Fix
931 reference counting and error handling.
932 * python/py-newobjfileevent.c (create_new_objfile_event_object):
933 Fix reference counting.
934 * python/py-signalevent.c (create_signal_event_object): Fix
935 reference counting and error handling.
936 * python/py-stopevent.c (emit_stop_event): Fix reference
937 counting.
938 * python/py-threadevent.c (get_event_thread): Return a
939 borrowed reference.
940 * python/py-type.c (convert_field): Fix reference counting.
941
942 2012-08-15 Tom Tromey <tromey@redhat.com>
943
944 * dwarf2read.c (dwarf_decode_macro_bytes)
945 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
946 as hash key.
947
948 2012-08-14 Mike Frysinger <vapier@gentoo.org>
949
950 * infcmd.c (_initialize_infcmd): Update help text for the signal,
951 stepi, nexti, finish, next, step, jump, and continue commands.
952 * infrun.c (_initialize_infrun): Update help text for the handle
953 command.
954
955 2012-08-14 Doug Evans <dje@google.com>
956
957 * gdbtypes.c (struct extra): Delete, unused.
958
959 * gdbtypes.c: Whitespace cleanup.
960 (address_space_name_to_int): Remove "extern" from definition.
961 (_initialize_gdbtypes): Declare with initialize_file_ftype.
962
963 * gdbtypes.c (make_pointer_type): Remove redundant setting of
964 TYPE_POINTER_TYPE (type).
965
966 2012-08-14 Gary Benson <gbenson@redhat.com>
967
968 * solib-svr4.c (svr4_free_library_list): Use free_so.
969
970 2012-08-13 Mike Frysinger <vapier@gentoo.org>
971
972 * .gitignore: Add go-exp.c.
973
974 2012-08-13 Doug Evans <dje@google.com>
975
976 * value.c (show_convenience): Tweak comment.
977 (_initialize_values): Mention convenience functions in the help text
978 for "show convenience".
979
980 2012-08-13 Yao Qi <yao@codesourcery.com>
981
982 * std-operator.def: Remove TERNOP_SLICE_COUNT.
983 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
984 TERNOP_SLICE_COUNT.
985 * eval.c (evaluate_subexp_standard): Likewise.
986 * expprint.c (print_subexp_standard): Likewise.
987 (dump_subexp_body_standard): Likewise.
988 * parse.c (operator_length_standard): Likewise.
989
990 2012-08-13 Yao Qi <yao@codesourcery.com>
991
992 * std-operator.def: Remove OP_BITSTRING.
993 * breakpoint.c (watchpoint_exp_is_const): Update.
994 * eval.c (evaluate_subexp_standard): Remove handling to
995 OP_BITSTRING.
996 * expprint.c (print_subexp_standard): Likewise.
997 (dump_subexp_body_standard): Likewise.
998 * parse.c (operator_length_standard): Likewise.
999 * valops.c (value_bitstring): Remove.
1000 * value.h: Remove the declaration of 'value_bitstring'.
1001
1002 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1003
1004 * linespec.c (find_methods): Remove unused variables `i1' and
1005 `name_len'.
1006 (decode_line_full): Likewise for `arg_start'.
1007
1008 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1009
1010 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1011 (zlib_decompress_section): Likewise for `section_data'.
1012 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1013
1014 2012-08-10 Doug Evans <dje@google.com>
1015
1016 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1017 * NEWS: Document them.
1018 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1019 function/strfns.py.
1020 * python/py-type.c (typy_array_1): New function.
1021 (typy_array): Call it.
1022 (typy_vector): New function.
1023 (type_object_methods): Add "vector".
1024 * python/lib/gdb/function/__init__.py: New file.
1025 * python/lib/gdb/function/strfns.py: New file.
1026
1027 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1028
1029 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1030 for TYPE_FIELD_BITPOS.
1031 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1032
1033 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1034
1035 PR cli/10436:
1036 * common/vec.h (VEC_merge): Define.
1037 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1038 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1039 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1040 * completer.c: Include gdb_signals.h.
1041 (signal_completer): Define.
1042 * completer.h (signal_completer): Add prototype.
1043 * infcmd.c (_initialize_infcmd): Assign the command
1044 completer for "signal" to handle_completer.
1045 * infrun.c: Include completer.h.
1046 (handle_completer): Define.
1047 (_initialize_infrun): Declare a new local variable c. Store the
1048 result of add_com("handle") to it. Assign the command
1049 completer for "handle" to handle_completer.
1050
1051 2012-08-09 Yao Qi <yao@codesourcery.com>
1052
1053 * cli/cli-decode.c (set_cmd_prefix): New.
1054 (lookup_cmd_for_prefixlist): New.
1055 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1056 of each cmd_list_element in *prefixlist.
1057 (add_setshow_cmd_full): set_cmd_prefix.
1058 (add_alias_cmd): Likewise.
1059 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1060 Declare 'auto_boolean_enums'.
1061 * cli/cli-setshow.c: Include "observer.h".
1062 (notify_command_param_changed_p): New.
1063 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1064 Remove 'static'.
1065 (do_setshow_command): Split it to ...
1066 (do_set_command, do_show_command): ... them. New.
1067 (do_set_command): Call observer_notify_command_param_changed if
1068 notify_command_param_changed_p returns true.
1069 (cmd_show_list): Caller update.
1070 * auto-load.c (set_auto_load_cmd): Likewise.
1071 * remote.c (show_remote_cmd): Likewise.
1072 * cli/cli-setshow.h: Update declarations.
1073 * top.c (execute_command): Call do_set_command and do_show_command.
1074
1075 * NEWS: Mention new MI notification.
1076 * mi/mi-interp.c: Declare mi_command_param_changed.
1077 (mi_interpreter_init): Attach mi_command_param_changed to
1078 observer command_param_changed.
1079 (mi_command_param_changed): New.
1080 Remove mi_suppress_breakpoint_notifications.
1081 Define global variable mi_suppress_notification.
1082 (mi_breakpoint_created): Update.
1083 (mi_breakpoint_deleted): Likewise.
1084 (mi_breakpoint_modified): Likewise.
1085 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1086 'gdb-set' and set mi_suppress_notification.
1087 * mi/mi-main.h: (mi_suppress_notification): New struct.
1088
1089 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1090 Jan Kratochvil <jan.kratochvil@redhat.com>
1091
1092 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1093
1094 2012-08-09 Yao Qi <yao@codesourcery.com>
1095
1096 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1097 (skiplist): Move it to skip.c.
1098 (init_cmd_lists): Remove code setting enablebreaklist and
1099 skiplist to NULL.
1100 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1101 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1102 skiplist.
1103 * gdbcmd.h: Likewise.
1104 * skip.c (_initialize_step_skip): Move 'skiplist' from
1105 cli/cli-cmds.c.
1106
1107 2012-08-09 Yao Qi <yao@codesourcery.com>
1108
1109 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1110 * gnu-nat.c, symfile.c: Likewise.
1111
1112 2012-08-08 Aaron Gamble <agamble@google.com>
1113
1114 * utils.c (prompt_for_continue_wait_time): New static global.
1115 (make_command_stats_cleanup): Initialize it.
1116 (report_command_stats): Subtract time waiting for user.
1117 (prompt_for_continue): Track time waiting for user.
1118 (defaulted_query): Track time waiting for user.
1119
1120 2012-08-08 Doug Evans <dje@google.com>
1121
1122 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1123 UNOP_MEMVAL_TYPE.
1124 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1125 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1126 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1127 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1128 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1129 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1130 elt.
1131 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1132 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1133 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1134 (dump_prefix_expression): Handle OP_TYPE.
1135
1136 2012-08-08 Keith Seitz <keiths@redhat.com>
1137
1138 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1139 addr_start.
1140
1141 2012-08-08 Doug Evans <dje@google.com>
1142
1143 * linux-thread-db.c: #include "gdb_vecs.h".
1144 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1145 updated.
1146 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1147 (thread_db_load_search): Use a vector to iterate over path elements.
1148 Handle text appearing after "$pdir".
1149
1150 * gdb_string.h: Moved to ...
1151 * common/gdb_string.h: ... here.
1152 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1153 gdb_string.h and gdb_assert.h.
1154
1155 2012-08-08 Yao Qi <yao@codesourcery.com>
1156
1157 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1158 (tic6x_value_to_register): Likewise.
1159 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1160 and set_gdbarch_value_to_register.
1161
1162 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1163 Jean-Marc Saffroy <saffroy@gmail.com>
1164
1165 PR 11804
1166 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1167 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1168 * gcore.c (gcore_create_callback): New function comment. Add modified
1169 parameter. Only write modified regions. Set SEC_READONLY exactly
1170 according to MODIFIED.
1171 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1172 the passed modified value to FUNC.
1173 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1174 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1175 first. New variables modified and has_anonymous. Parse the lines of
1176 smaps file. Add the passed MODIFIED value to FUNC.
1177 * procfs.c (find_memory_regions_callback): Add the passed modified
1178 value.
1179
1180 2012-08-06 Tom Tromey <tromey@redhat.com>
1181
1182 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1183 (dwarf2_frame_cache): Use it.
1184 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1185 cache initialization constraint.
1186
1187 2012-08-06 Tom Tromey <tromey@redhat.com>
1188
1189 PR python/14386:
1190 * varobj.c (update_dynamic_varobj_children): Don't call
1191 PyIter_Check.
1192
1193 2012-08-06 Tom Tromey <tromey@redhat.com>
1194
1195 PR cli/14392:
1196 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1197
1198 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1199
1200 * NEWS: New entry for 'cd' default parameters.
1201 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1202
1203 2012-08-03 Tom Tromey <tromey@redhat.com>
1204
1205 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1206 return.
1207
1208 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1209
1210 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1211 to attempting lseek/write.
1212 (inf_child_fileio_pread): Likewise for pread.
1213
1214 2012-08-02 Yao Qi <yao@codesourcery.com>
1215
1216 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1217 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1218 add_setshow_zinteger_cmd.
1219 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1220 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1221 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1222 instead of add_setshow_zinteger_cmd.
1223 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1224 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1225 instead of add_setshow_zinteger_cmd.
1226 * frame.c (frame_debug): Add 'unsigned'.
1227 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1228 add_setshow_zinteger_cmd.
1229 * frame.h: Update the declaration of 'frame_debug'.
1230 * gdbtypes.c (overload_debug): Add 'unsigned'.
1231 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1232 add_setshow_zinteger_cmd.
1233 * inferior.h: Update declaration of 'debug_infrun'.
1234 * infrun.c (debug_infrun): Add 'unsigned'.
1235 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1236 add_setshow_zinteger_cmd.
1237 * jit.c (jit_debug): Add 'unsigned'.
1238 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1239 add_setshow_zinteger_cmd.
1240 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1241 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1242 instead of add_setshow_zinteger_cmd.
1243 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1244 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1245 add_setshow_zinteger_cmd.
1246 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1247 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1248 instead of add_setshow_zinteger_cmd.
1249 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1250 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1251 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1252 intead of add_setshow_zinteger_cmd.
1253 * mips-tdep.c (mips_debug): Add 'unsigned'.
1254 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1255 instead of add_setshow_zinteger_cmd.
1256 * monitor.c (monitor_debug): Add 'unsigned'.
1257 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1258 add_setshow_zinteger_cmd.
1259 * observer.c (observer_debug): Add 'unsigned'.
1260 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1261 add_setshow_zinteger_cmd.
1262 * parse.c (expressiondebug): Add 'unsigned'.
1263 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1264 add_setshow_zinteger_cmd.
1265 * record.c (record_debug): Add 'unsigned'.
1266 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1267 add_setshow_zinteger_cmd.
1268 * record.h: Update the declaration of 'record_debug'.
1269 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1270 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1271 add_setshow_zinteger_cmd.
1272 * serial.c (global_serial_debug_p): Add 'unsigned'.
1273 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1274 add_setshow_zinteger_cmd.
1275 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1276 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1277 add_setshow_zinteger_cmd.
1278 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1279 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1280 add_setshow_zinteger_cmd.
1281 * target.c (targetdebug): Add 'unsigned'.
1282 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1283 add_setshow_zinteger_cmd.
1284 * valops.c (overload_debug): Add 'unsigned'.
1285 * varobj.c (varobjdebug): Add 'unsigned'.
1286 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1287 add_setshow_zinteger_cmd.
1288 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1289 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1290 instead of add_setshow_zinteger_cmd.
1291
1292 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1293 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1294 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1295 instead of add_setshow_zinteger_cmd.
1296 * gdbarch.c, gdbarch.h: Re-generated.
1297
1298 2012-08-02 Yao Qi <yao@codesourcery.com>
1299
1300 * nto-tdep.c: Don't include cli/cli-decode.h and
1301 cli/cli-cmds.h.
1302 (_initialize_nto_tdep): Remove.
1303 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1304 Remove field.
1305 Remove macro nto_internal_debugging.
1306
1307 2012-08-01 Richard Henderson <rth@redhat.com>
1308
1309 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1310 (mep-*-*) [gdb_target_obs]: Likewise.
1311
1312 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1313
1314 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1315 linux_get_siginfo_type.
1316
1317 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1320 AT_ENTRY_POINT.
1321 (call_function_by_hand) <ON_STACK>: Call write_memory with
1322 gdbarch_breakpoint_from_pc, if possible.
1323 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1324 here.
1325
1326 2012-07-31 Yao Qi <yao@codesourcery.com>
1327
1328 * tracepoint.c: Add 'static' for some variables.
1329
1330 2012-07-31 Yao Qi <yao@codesourcery.com>
1331
1332 * go32-nat.c: Declare _initialize_go32_nat.
1333 * ser-go32.c: Declare _initialize_ser_dos.
1334 * top.c (do_chdir_cleanup): Add 'static'.
1335
1336 2012-07-30 Keith Seitz <keiths@redhat.com>
1337
1338 * linespec.c (linespec_lex_number): A number followed
1339 by quotes is a valid number, too.
1340
1341 2012-07-30 Tom Tromey <tromey@redhat.com>
1342
1343 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1344
1345 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1346
1347 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1348 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1349
1350 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1351
1352 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1353 invalid or reevaluated to prevent prevent references to possibly
1354 delete'd type objects being left in the varobj.
1355
1356 2012-07-27 Tom Tromey <tromey@redhat.com>
1357 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 * copying.awk: Print buffer-read-only and vi ro markers.
1360 * copying.c: Rebuild.
1361 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1362 * gdbarch.c, gdbarch.h: Rebuild.
1363 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1364 buffer-read-only and vi ro markers.
1365 * features/arm-with-iwmmxt.c: Rebuild.
1366 * features/arm-with-m-fpa-layout.c: Rebuild.
1367 * features/arm-with-m-vfp-d16.c: Rebuild.
1368 * features/arm-with-m.c: Rebuild.
1369 * features/arm-with-neon.c: Rebuild.
1370 * features/arm-with-vfpv2.c: Rebuild.
1371 * features/arm-with-vfpv3.c: Rebuild.
1372 * features/i386/amd64-avx-linux.c: Rebuild.
1373 * features/i386/amd64-avx.c: Rebuild.
1374 * features/i386/amd64-linux.c: Rebuild.
1375 * features/i386/amd64.c: Rebuild.
1376 * features/i386/i386-avx-linux.c: Rebuild.
1377 * features/i386/i386-avx.c: Rebuild.
1378 * features/i386/i386-linux.c: Rebuild.
1379 * features/i386/i386-mmx-linux.c: Rebuild.
1380 * features/i386/i386-mmx.c: Rebuild.
1381 * features/i386/i386.c: Rebuild.
1382 * features/i386/x32-avx-linux.c: Rebuild.
1383 * features/i386/x32-avx.c: Rebuild.
1384 * features/i386/x32-linux.c: Rebuild.
1385 * features/i386/x32.c: Rebuild.
1386 * features/mips-dsp-linux.c: Rebuild.
1387 * features/mips-linux.c: Rebuild.
1388 * features/mips64-dsp-linux.c: Rebuild.
1389 * features/mips64-linux.c: Rebuild.
1390 * features/rs6000/powerpc-32.c: Rebuild.
1391 * features/rs6000/powerpc-32l.c: Rebuild.
1392 * features/rs6000/powerpc-403.c: Rebuild.
1393 * features/rs6000/powerpc-403gc.c: Rebuild.
1394 * features/rs6000/powerpc-405.c: Rebuild.
1395 * features/rs6000/powerpc-505.c: Rebuild.
1396 * features/rs6000/powerpc-601.c: Rebuild.
1397 * features/rs6000/powerpc-602.c: Rebuild.
1398 * features/rs6000/powerpc-603.c: Rebuild.
1399 * features/rs6000/powerpc-604.c: Rebuild.
1400 * features/rs6000/powerpc-64.c: Rebuild.
1401 * features/rs6000/powerpc-64l.c: Rebuild.
1402 * features/rs6000/powerpc-7400.c: Rebuild.
1403 * features/rs6000/powerpc-750.c: Rebuild.
1404 * features/rs6000/powerpc-860.c: Rebuild.
1405 * features/rs6000/powerpc-altivec32.c: Rebuild.
1406 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1407 * features/rs6000/powerpc-altivec64.c: Rebuild.
1408 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1409 * features/rs6000/powerpc-cell32l.c: Rebuild.
1410 * features/rs6000/powerpc-cell64l.c: Rebuild.
1411 * features/rs6000/powerpc-e500.c: Rebuild.
1412 * features/rs6000/powerpc-e500l.c: Rebuild.
1413 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1414 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1415 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1416 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1417 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1418 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1419 * features/rs6000/powerpc-vsx32.c: Rebuild.
1420 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1421 * features/rs6000/powerpc-vsx64.c: Rebuild.
1422 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1423 * features/rs6000/rs6000.c: Rebuild.
1424 * features/s390-linux32.c: Rebuild.
1425 * features/s390-linux32v1.c: Rebuild.
1426 * features/s390-linux32v2.c: Rebuild.
1427 * features/s390-linux64.c: Rebuild.
1428 * features/s390-linux64v1.c: Rebuild.
1429 * features/s390-linux64v2.c: Rebuild.
1430 * features/s390x-linux64.c: Rebuild.
1431 * features/s390x-linux64v1.c: Rebuild.
1432 * features/s390x-linux64v2.c: Rebuild.
1433 * features/tic6x-c62x-linux.c: Rebuild.
1434 * features/tic6x-c62x.c: Rebuild.
1435 * features/tic6x-c64x-linux.c: Rebuild.
1436 * features/tic6x-c64x.c: Rebuild.
1437 * features/tic6x-c64xp-linux.c: Rebuild.
1438 * features/tic6x-c64xp.c: Rebuild.
1439
1440 2012-07-27 Tom Tromey <tromey@redhat.com>
1441
1442 * c-exp.y (classify_name): Avoid assignment in condition.
1443
1444 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1445
1446 * amd64-windows-tdep.c: Include "frame.h".
1447 (amd64_windows_skip_trampoline_code): New function.
1448 (amd64_windows_init_abi): Add trampoline registration.
1449
1450 2012-07-27 Yao Qi <yao@codesourcery.com>
1451
1452 * tracepoint.c (cur_traceframe_number): Remove.
1453 (set_tfile_traceframe): Remove.
1454 (tfile_trace_find, tfile_fetch_registers): Update callers.
1455 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1456 (tfile_open, tfile_trace_find): Likewise.
1457
1458 2012-07-27 Yao Qi <yao@codesourcery.com>
1459
1460 * thread.c (switch_to_thread): Don't call registers_changed.
1461
1462 2012-07-26 Tom Tromey <tromey@redhat.com>
1463
1464 * Makefile.in (SFILES): Remove objc-exp.y.
1465 (YYFILES): Remove objc-exp.c.
1466 (YYOBJ): Remove objc-exp.o.
1467 (local-maintainer-clean): Don't mention objc-exp.c.
1468 * c-exp.y: Include objc-lang.h.
1469 (%union) <class>: New field.
1470 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1471 (exp): Clone subscript production for OBJC_LBRAC. Add various
1472 Objective C productions.
1473 (msglist, msgarglist, msgarg): New productions.
1474 (array_mod, func_mod, operator): Clone productions for
1475 OBJC_LBRAC.
1476 (parse_string_or_char): Handle '@' strings.
1477 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1478 (classify_name): Check la_name_of_this. Recognize ObjC class
1479 names.
1480 * objc-exp.y: Remove.
1481 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1482 * objc-lang.h (objc_parse, objc_error): Don't declare.
1483
1484 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1485
1486 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1487
1488 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1491 and decrement.
1492
1493 2012-07-26 Tom Tromey <tromey@redhat.com>
1494
1495 * copying.c: Rebuild.
1496 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1497 'no_class'.
1498
1499 2012-07-26 Tom Tromey <tromey@redhat.com>
1500
1501 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1502 immediate_quit.
1503 (print_objfile_statistics): Likewise.
1504 (maintenance_print_symbols): Likewise.
1505 (maintenance_print_msymbols): Likewise.
1506 (maintenance_print_objfiles): Likewise.
1507 * psymtab.c (print_partial_symbols): Call QUIT.
1508 (maintenance_print_psymbols): Likewise. Don't modify
1509 immediate_quit.
1510 * copying.c (show_copying_command): Don't modify immediate_quit.
1511 (show_warranty_command): Likewise.
1512 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1513
1514 2012-07-26 Keith Seitz <keiths@redhat.com>
1515
1516 * linespec.c (linespec_lexer_lex_number): The input
1517 is also a valid number if the next character is a comma
1518 or colon.
1519
1520 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1521
1522 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1523 configure options.
1524
1525 2012-07-26 Tristan Gingold <gingold@adacore.com>
1526
1527 * machoread.c: Include gdb_bfd.h.
1528
1529 2012-07-26 Tristan Gingold <gingold@adacore.com>
1530
1531 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1532 offset.
1533
1534 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1535
1536 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1537 SIZE to size_t.
1538 (dwarf2_evaluate_loc_desc): Likewise.
1539 (dwarf2_loc_desc_needs_frame): Likewise.
1540 (locexpr_describe_location_1): Likewise.
1541 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1542 size_t.
1543 (struct dwarf2_loclist_baton): Likewise.
1544 * dwarf2read.c (struct dwarf_block): Likewise.
1545 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1546 (decode_locdesc): Expand SIZE and I to size_t.
1547
1548 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1551
1552 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1553
1554 * doublest.c (convert_doublest_to_floatformat): If the exponent
1555 is too small, treat the value as zero. If the exponent is too
1556 large, treat the value as infinity.
1557
1558 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1559
1560 * configure.ac: Add --enable-lmcheck configure option.
1561 * configure: Regenerate.
1562
1563 2012-07-25 Tom Tromey <tromey@redhat.com>
1564
1565 * NEWS: Mention maint info bfds.
1566 * gdb_bfd.c (all_bfds): New global.
1567 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1568 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1569 New functions.
1570
1571 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1572
1573 * configure.tgt: Add v850*-*-rtems*.
1574
1575 2012-07-25 Tom Tromey <tromey@redhat.com>
1576
1577 * macrotab.c (macro_bcache_str): Remove cast.
1578
1579 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1580
1581 * linespec.c (linespec_lexer_lex_number): Update comments,
1582 change the return and add check to make sure the input is
1583 the decimal numbers.
1584 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1585 false, call linespec_lexer_lex_string.
1586
1587 2012-07-24 Tom Tromey <tromey@redhat.com>
1588
1589 * symfile.c (symbol_file_add): Don't open BFD twice.
1590
1591 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1592
1593 * breakpoint.c (create_breakpoint): Store condition for pending
1594 breakpoints.
1595
1596 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1597
1598 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1599 (m68k_return_value): Handle complex types like structures.
1600 (m68k_svr4_return_value): Likewise.
1601
1602 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1603
1604 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1605 parameters to bfd_get_section_name.
1606
1607 2012-07-24 Yao Qi <yao@codesourcery.com>
1608
1609 * cli/cli-setshow.c: Handle case 'var_uinteger'
1610 and 'var_zuninteger' together. Handle case 'var_integer' and
1611 'var_zinteger' together.
1612
1613 2012-07-23 Keith Seitz <keiths@redhat.com>
1614
1615 * linespec.c (convert_linespec_to_sal): Don't add
1616 any symbols to the result vector if symbol_to_sal
1617 returns zero.
1618
1619 2012-07-23 Keith Seitz <keiths@redhat.com>
1620
1621 * linespec.c (decode_objc): Record the function name
1622 in the linespec.
1623
1624 2012-07-23 Tom Tromey <tromey@redhat.com>
1625
1626 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1627 counting.
1628 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1629 (map_vmap): Acquire a reference to the BFD.
1630
1631 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1632
1633 * p-valprint.c (pascal_object_print_value): Replace potentially
1634 unsafe alloca with xmalloc/xfree.
1635 * valops.c (search_struct_method): Likewise.
1636
1637 2012-07-23 Tom Tromey <tromey@redhat.com>
1638
1639 * solib-svr4.c (enable_break): Update.
1640 * bfd-target.h (target_bfd_reopen): Update documentation.
1641
1642 2012-07-23 Tom Tromey <tromey@redhat.com>
1643
1644 * symfile.c (separate_debug_file_exists): Update.
1645 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1646 (reread_symbols): Update.
1647 * elfread.c (build_id_verify): Update.
1648 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1649 bfd_open_maybe_remote.
1650
1651 2012-07-23 Tom Tromey <tromey@redhat.com>
1652
1653 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1654
1655 2012-07-23 Tom Tromey <tromey@redhat.com>
1656
1657 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1658 and 'abfd'.
1659 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1660 and 'abfd'.
1661 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1662 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1663 'abfd'.
1664 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1665 * objfiles.c (allocate_objfile): Acquire a new reference.
1666 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1667 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1668 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1669 a cleanup for 'nbfd'.
1670 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1671 for 'nbfd'.
1672 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1673 make a cleanup for 'abfd'.
1674 (symbol_file_add): Make a BFD cleanup.
1675
1676 2012-07-23 Tom Tromey <tromey@redhat.com>
1677
1678 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1679 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1680 * corelow.c (core_open): Use gdb_bfd_fopen.
1681 * dsrec.c (load_srec): Use gdb_bfd_openr.
1682 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1683 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1684 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1685 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1686 (gdb_bfd_fdopenr): New functions.
1687 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1688 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1689 (gdb_bfd_fdopenr): Declare.
1690 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1691 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1692 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1693 gdb_bfd_openr_next_archived_file.
1694 (macho_check_dsym): Use gdb_bfd_openr.
1695 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1696 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1697 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1698 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1699 gdb_bfd_openr.
1700 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1701 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1702 gdb_bfd_openr_next_archived_file.
1703 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1704 Use gdb_bfd_openr.
1705 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1706 gdb_bfd_openr.
1707 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1708 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1709 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1710 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1711 (symfile_bfd_open): Use gdb_bfd_fopen.
1712 (generic_load): Use gdb_bfd_openr.
1713 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1714
1715 2012-07-23 Tom Tromey <tromey@redhat.com>
1716
1717 * bfd-target.c (target_bfd_reopen): Update.
1718 * cli/cli-dump.c (bfd_openr_with_cleanup)
1719 (bfd_openw_with_cleanup): Update.
1720 * corelow.c (core_open): Update.
1721 * dsrec.c (load_srec): Update.
1722 * exec.c (exec_file_attach): Update.
1723 * gcore.c (create_gcore_bfd): Update.
1724 * gdb_bfd.c (gdb_bfd_ref): Return void.
1725 (gdb_bfd_open): Update.
1726 * gdb_bfd.h (gdb_bfd_ref): Return void.
1727 Update comments.
1728 * jit.c (jit_bfd_try_read_symtab): Update.
1729 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1730 * machoread.c (macho_symfile_read_all_oso): Update.
1731 (macho_check_dsym): Update.
1732 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1733 * remote-m32r-sdi.c (m32r_load): Update.
1734 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1735 * rs6000-nat.c (add_vmap): Update.
1736 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1737 Update.
1738 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1739 * solib-spu.c (spu_bfd_open): Update.
1740 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1741 * spu-linux-nat.c (spu_bfd_open): Update.
1742 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1743 (generic_load): Update.
1744 * windows-nat.c (windows_make_so): Update.
1745
1746 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1747
1748 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1749
1750 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1751
1752 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1753 SIGTRAMP_FRAME unwinding.
1754
1755 2012-07-20 Doug Evans <dje@google.com>
1756
1757 * NEWS: Document new options "set/show use-deprecated-index-sections",
1758 and delete reference to --use-deprecated-index-sections.
1759 * symfile.h (use_deprecated_index_sections): Delete.
1760 * dwarf2read.c (use_deprecated_index_sections): Make static.
1761 (read_index_from_section): Update wording of how to load
1762 deprecated index sections.
1763 (_initialize_dwarf2_read): New options
1764 "set/show use-deprecated-index-sections".
1765 * main.c (captured_main): Delete --use-deprecated-index-sections.
1766
1767 2012-07-20 Pedro Alves <palves@redhat.com>
1768
1769 PR threads/11692
1770 PR gdb/12203
1771
1772 * infrun.c (handle_inferior_event) <new thread>: Don't special
1773 case minus_one_ptid.
1774 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1775 * linux-thread-db.c (thread_get_info_callback): Don't return early
1776 if the thread is zombie.
1777 (thread_from_lwp): Change return type to void. Rewrite stale
1778 comment.
1779 (attach_thread): Don't return early if the thread is zombie,
1780 instead set its "dying" flag.
1781 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1782 (find_new_threads_callback): Don't return early if the thread is
1783 zombie.
1784
1785 2012-07-20 Pedro Alves <palves@redhat.com>
1786
1787 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1788 * target.c (target_wait): Likewise.
1789 (str_comma_list_concat_elem, do_option, target_options_to_string):
1790 New functions.
1791 * target.h (target_options_to_string): Declare.
1792
1793 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 Tom Tromey <tromey@redhat.com>
1795
1796 * dwarf2read.c (dwarf_decode_macros)
1797 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1798 DW_MACRO_GNU_transparent_include_alt>: New cases.
1799 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1800 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1801
1802 2012-07-20 Tom Tromey <tromey@redhat.com>
1803
1804 * dwarf2read.c (try_open_dwo_file): Don't call
1805 gdb_bfd_stash_filename.
1806
1807 2012-07-20 Pedro Alves <palves@redhat.com>
1808
1809 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1810 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1811 (i386_process_record): Tweak description comments.
1812
1813 2012-07-20 Pedro Alves <palves@redhat.com>
1814
1815 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1816 (i386_process_record): Use record_read_memory.
1817 * record.c (record_read_memory): New function.
1818 (record_arch_list_add_mem, record_exec_insn): Use
1819 record_read_memory.
1820 * record.h (record_read_memory): Declare.
1821
1822 2012-07-20 Yao Qi <yao@codesourcery.com>
1823
1824 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1825 NULL for xfree.
1826
1827 2012-07-19 Pedro Alves <palves@redhat.com>
1828
1829 * record.c (record_resume): Ask the target beneath to report all
1830 signals.
1831
1832 2012-07-19 Doug Evans <dje@google.com>
1833
1834 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1835 there's no section at address zero.
1836 (dwarf2_record_block_ranges): Ditto.
1837
1838 2012-07-19 Yao Qi <yao@codesourcery.com>
1839
1840 * command.h, remote.c: Fix a typo in comment.
1841
1842 2012-07-19 Tom Tromey <tromey@redhat.com>
1843
1844 PR exp/13206:
1845 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1846 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1847 OP_DECLTYPE>: New cases.
1848 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1849 (type_exp): Add new productions.
1850 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1851 and decltype.
1852 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1853 New case.
1854 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1855 OP_DECLTYPE>: New case.
1856 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1857 New case.
1858 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1859 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1860
1861 2012-07-19 Tom Tromey <tromey@redhat.com>
1862
1863 * c-exp.y (enum token_flags): New.
1864 (struct token) <cxx_only>: Remove.
1865 <flags>: New field.
1866 (tokentab3, tokentab2, ident_tokens): Update.
1867 (lex_one_token): Update. Handle FLAG_SHADOW.
1868
1869 2012-07-19 Tom Tromey <tromey@redhat.com>
1870
1871 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1872 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1873 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1874 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1875 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1876 type_exp production where appropriate.
1877 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1878 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1879 <UNOP_MEMVAL_TYPE>: New case.
1880 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1881 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1882 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1883 <UNOP_MEMVAL_TYPE>: New case.
1884 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1885 UNOP_REINTERPRET_CAST>: Update.
1886 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1887 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1888 UNOP_REINTERPRET_CAST>: Update.
1889 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1890 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1891 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1892 constants.
1893
1894 2012-07-19 Yao Qi <yao@codesourcery.com>
1895 Jan Kratochvil <jan.kratochvil@redhat.com>
1896
1897 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1898 and case 'var_optional_filename' together.
1899 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1900 instead of add_setshow_optional_filename_cmd for setshow command
1901 'args'. Set completer for 'set args'.
1902
1903 2012-07-18 Doug Evans <dje@google.com>
1904
1905 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1906 * common/gdb_vecs.c: New file, contents from utils.c.
1907 * common/host-defs.h: New file, contents from defs.h.
1908 * utils.h: New file, contents from defs.h.
1909 * defs.h: Move all declarations of objects defined in utils.c
1910 to utils.h (except QUIT() and related).
1911 #include "utils.h", "host-defs.h".
1912 * probe.h (probe_p): Move here from gdb_vecs.h.
1913 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1914 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1915 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1916 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1917 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1918 (COMMON_OBS): Add gdb_vecs.o.
1919 (gdb_vecs.o): New rule.
1920
1921 2012-07-18 Keith Seitz <keiths@redhat.com>
1922
1923 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1924 parameter. If non-zero, use SYMNAME as the canonical name
1925 for the SaL.
1926 Update all callers.
1927 (convert_linespec_to_sals): Use add_sal_to_sals for
1928 expressions, too.
1929 (decode_line_full): No need to "fill in missing canonical names"
1930 anymore. Simply make cleanups for the allocated names.
1931
1932 2012-07-18 Keith Seitz <keiths@redhat.com>
1933
1934 * linespec.c (struct linespec): Constify expression,
1935 source_filename, function_name, and label_name.
1936 (symbol_not_found_error): Make all parameters const.
1937 (linespec_parser_delete): No need to check for NULL
1938 when using xfree. Cast const char * to char * for xfree.
1939
1940 2012-07-18 Keith Seitz <keiths@redhat.com>
1941
1942 * breakpoint.c (invalid_thread_id_error): New function.
1943 (find_condition_and_thread): Use invalid_thread_id_error.
1944 (watch_command_1): Likewise.
1945
1946 2012-07-18 Tom Tromey <tromey@redhat.com>
1947
1948 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1949 * contrib/cc-with-tweaks.sh: New file.
1950
1951 2012-07-18 Tom Tromey <tromey@redhat.com>
1952
1953 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1954 (locate_dwz_sections): Recognize .gdb_index.
1955 (create_cus_from_index_list): New function.
1956 (create_cus_from_index): Use it. Handle .dwz data.
1957 (read_index_from_section): New function, extracted from
1958 dwarf2_read_index.
1959 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1960 if needed.
1961
1962 2012-07-18 Tom Tromey <tromey@redhat.com>
1963
1964 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1965 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1966 <is_dwz>: New field.
1967 (struct dwz_file): New.
1968 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1969 (locate_dwz_sections, dwarf2_get_dwz_file)
1970 (get_abbrev_section_for_cu): New functions.
1971 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1972 (read_and_check_type_unit_head): Add abbrev_section argument.
1973 (create_debug_types_hash_table): Update.
1974 (init_cutu_and_read_dies): Use proper abbrev section.
1975 (init_cutu_and_read_dies_no_follow): Likewise.
1976 (set_partial_user): Do nothing if PST==NULL.
1977 (read_comp_units_from_section): New function.
1978 (create_all_comp_units): Use it.
1979 (scan_partial_symbols, partial_die_parent_scope): Update.
1980 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1981 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1982 (find_partial_die): Add offset_in_dwz argument. Update.
1983 (guess_partial_die_structure_name, fixup_partial_die): Update.
1984 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1985 DW_FORM_GNU_strp_alt.
1986 (read_indirect_string_from_dwz): New function.
1987 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1988 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1989 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1990 (follow_die_offset): Add offset_in_dwz argument.
1991 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1992 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1993 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1994 Handle new macro forms.
1995 (dwarf_decode_macros): Update.
1996 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1997 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1998 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1999 (create_debug_types_hash_table): Use correct abbrev section.
2000 (get_debug_line_section): New function.
2001 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2002 (process_full_comp_unit): Pass 'required' argument to
2003 end_symtab_get_static_block.
2004 * buildsym.h (end_symtab_get_static_block): Update.
2005 * buildsym.c (end_symtab_get_static_block): Add 'required'
2006 argument.
2007 (end_symtab, end_expandable_symtab): Update.
2008
2009 2012-07-18 Tom Tromey <tromey@redhat.com>
2010
2011 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2012 (pagesize): Remove.
2013 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2014 (zlib_decompress_section): Remove.
2015 (dwarf2_read_section): Use gdb_bfd_map_section.
2016 (munmap_section_buffer): Remove.
2017 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2018 munmap_section_buffer.
2019 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2020 (struct gdb_bfd_section_data): New.
2021 (free_one_bfd_section): New function.
2022 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2023 (get_section_descriptor, zlib_decompress_section)
2024 (gdb_bfd_map_section): New functions.
2025 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2026
2027 2012-07-18 Tom Tromey <tromey@redhat.com>
2028
2029 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2030
2031 2012-07-18 Tom Tromey <tromey@redhat.com>
2032
2033 * gdb_bfd.c (struct gdb_bfd_data): New.
2034 (gdb_bfd_cache): New global.
2035 (struct gdb_bfd_cache_search): New.
2036 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2037 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2038 * gdb_bfd.h (gdb_bfd_open): Declare.
2039
2040 2012-07-18 Tom Tromey <tromey@redhat.com>
2041
2042 * utils.c (make_cleanup_bfd_unref): Rename from
2043 make_cleanup_bfd_close.
2044 * defs.h (make_cleanup_bfd_unref): Rename from
2045 make_cleanup_bfd_close.
2046 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2047 (bfd_openw_with_cleanup): Update.
2048 * corelow.c (core_open): Update.
2049 * dsrec.c (load_srec): Update.
2050 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2051 * remote-m32r-sdi.c (m32r_load): Update.
2052 * remote-mips.c (mips_load_srec): Update.
2053 (pmon_load_fast): Update.
2054 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2055 Update.
2056 (darwin_bfd_open): Update.
2057 * solib.c (solib_bfd_fopen): Update.
2058 * symfile-mem.c (symbol_file_add_from_memory): Update.
2059 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2060 (symfile_bfd_open): Update.
2061 (generic_load): Update.
2062
2063 2012-07-18 Tom Tromey <tromey@redhat.com>
2064
2065 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2066 (pmon_load_fast): Likewise.
2067 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2068 (m32r_upload_command): Likewise.
2069 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2070 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2071 Use make_cleanup_bfd_close.
2072
2073 2012-07-18 Tom Tromey <tromey@redhat.com>
2074
2075 * symfile.c (symfile_bfd_open): Don't copy name. Call
2076 gdb_bfd_stash_filename.
2077 (load_command): Open the new BFD before freeing the old.
2078 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2079 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2080 Call gdb_bfd_stash_filename.
2081 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2082 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2083 gdb_bfd_stash_filename.
2084 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2085 Free found_pathname.
2086 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2087 gdb_bfd_stash_filename.
2088 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2089 * machoread.c (macho_add_oso_symfile): Call
2090 gdb_bfd_stash_filename.
2091 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2092 gdb_bfd_stash_filename.
2093 (macho_check_dsym): Don't copy filename. Call
2094 gdb_bfd_stash_filename.
2095 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2096 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2097 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2098 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2099 * exec.c (exec_close): Don't free the BFD's filename.
2100 (exec_file_attach): Don't copy the filename. Call
2101 gdb_bfd_stash_filename.
2102 * corelow.c (core_close): Don't free the BFD's filename.
2103 (core_open): Call gdb_bfd_stash_filename.
2104 * corefile.c (reopen_exec_file): Remove #if 0 code.
2105 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2106 pathname.
2107 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2108
2109 2012-07-18 Tom Tromey <tromey@redhat.com>
2110
2111 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2112 gdb_bfd_unref.
2113 (free_dwo_file): Use gdb_bfd_unref.
2114 * cli/cli-dump.c: Include gdb_bfd.h.
2115 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2116 (bfd_openr_with_cleanup): Likewise.
2117 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2118 gdb_bfd_unref.
2119 * utils.c: Include gdb_bfd.h.
2120 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2121 * symfile.c: Include gdb_bfd.h.
2122 (separate_debug_file_exists): Use gdb_bfd_unref.
2123 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2124 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2125 (generic_load): Use gdb_bfd_ref.
2126 (reread_symbols): Use gdb_bfd_unref.
2127 * symfile-mem.c: Include gdb_bfd.h.
2128 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2129 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2130 * solib.c: Include gdb_bfd.h.
2131 (solib_bfd_fopen): Use gdb_bfd_ref.
2132 (solib_bfd_open): Use gdb_bfd_unref.
2133 (free_so_symbols): Use gdb_bfd_unref.
2134 (reload_shared_libraries_1): Use gdb_bfd_unref.
2135 * solib-spu.c: Include gdb_bfd.h.
2136 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2137 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2138 gdb_bfd_unref.
2139 * solib-frv.c: Include gdb_bfd.h.
2140 (enable_break2): Use gdb_bfd_unref.
2141 * solib-dsbt.c: Include gdb_bfd.h.
2142 (enable_break2): Use gdb_bfd_unref.
2143 * solib-darwin.c: Include gdb_bfd.h.
2144 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2145 gdb_bfd_unref.
2146 (darwin_bfd_open): Use gdb_bfd_unref.
2147 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2148 * remote-mips.c: Include gdb_bfd.h.
2149 (mips_load_srec): Use gdb_bfd_ref.
2150 (pmon_load_fast): Use gdb_bfd_ref.
2151 * remote-m32r-sdi.c: Include gdb_bfd.h.
2152 (m32r_load): Use gdb_bfd_ref.
2153 * record.c: Include gdb_bfd.h.
2154 (record_save_cleanups): Use gdb_bfd_unref.
2155 (cmd_record_save): Use gdb_bfd_unref.
2156 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2157 gdb_bfd_unref.
2158 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2159 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2160 * objfiles.c: Include gdb_bfd.h.
2161 (free_objfile): Use gdb_bfd_unref.
2162 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2163 gdb_bfd.c.
2164 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2165 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2166 (macho_check_dsym): Likewise.
2167 * m32r-rom.c: Include gdb_bfd.h.
2168 (m32r_load): Use gdb_bfd_ref.
2169 (m32r_upload_command): Use gdb_bfd_ref.
2170 * jit.c: Include gdb_bfd.h.
2171 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2172 * gdb_bfd.h: New file.
2173 * gdb_bfd.c: New file.
2174 * gcore.c: Include gdb_bfd.h.
2175 (create_gcore_bfd): Use gdb_bfd_ref.
2176 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2177 (gcore_command): Use gdb_bfd_unref.
2178 * exec.c: Include gdb_bfd.h.
2179 (exec_close): Use gdb_bfd_unref.
2180 (exec_close_1): Use gdb_bfd_unref.
2181 (exec_file_attach): Use gdb_bfd_ref.
2182 * elfread.c: Include gdb_bfd.h.
2183 (build_id_verify): Use gdb_bfd_unref.
2184 * dsrec.c: Include gdb_bfd.h.
2185 (load_srec): Use gdb_bfd_ref.
2186 * corelow.c: Include gdb_bfd.h.
2187 (core_close): Use gdb_bfd_unref.
2188 (core_open): Use gdb_bfd_ref.
2189 * bfd-target.c: Include gdb_bfd.h.
2190 (target_bfd_xclose): Use gdb_bfd_unref.
2191 (target_bfd_reopen): Use gdb_bfd_ref.
2192 * Makefile.in (SFILES): Add gdb_bfd.c.
2193 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2194 (COMMON_OBS): Add gdb_bfd.o.
2195
2196 2012-07-18 Keith Seitz <keiths@redhat.com>
2197
2198 * breakpoint.c (find_condition_and_thread): Initialize
2199 TASK and REST.
2200 (create_breakpiont): find_condition_and_thread will now
2201 initialize COND_STRING, THREAD, and REST (and TASK).
2202 (addr_string_to_sals): Likewise.
2203
2204 2012-07-18 Pedro Alves <palves@redhat.com>
2205
2206 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2207 Pull the single step breakpoints out of the target.
2208
2209 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2210
2211 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2212 * stap-probe.c (compile_probe_arg): Likewise.
2213
2214 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2215
2216 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2217 (elf_compile_to_ax): Likewise.
2218 * infrun.c (insert_exception_resume_from_probe): Likewise.
2219 (check_exception_resume): Remove `objfile' variable.
2220 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2221 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2222 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2223 (compare_entries): Rename to...
2224 (compare_probes): ...this. Adjust function to work with
2225 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2226 respectively.
2227 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2228 `VEC (probe_p) *'.
2229 (print_ui_out_info): Adjust argument to be `struct probe *'.
2230 (info_probes_for_ops): Adjust internal computations to use
2231 `VEC (probe_p) *'.
2232 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2233 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2234 gen_info_probes_table_values>: Remove `objfile' argument.
2235 (struct probe) <objfile>: New field.
2236 (find_probe_by_pc): Remove `objfile' argument.
2237 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2238 (stap_get_probe_argument_count): Likewise.
2239 (stap_get_arg): Likewise.
2240 (stap_evaluate_probe_argument): Likewise.
2241 (stap_compile_to_ax): Likewise.
2242 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2243 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2244 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2245 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2246 sym_compile_to_ax>: Likewise.
2247
2248 2012-07-18 Terry Guo <terry.guo@arm.com>
2249
2250 PR 14329
2251 * defs.h (GDB_MI_MSG_WIDTH): New.
2252 * ser_base (ser_base_read_error_fd): New function.
2253 (do_ser_base_readchar): Poll error file descriptor as well as
2254 standard output.
2255 (generic_readchar): Refactor error handling.
2256
2257 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2258
2259 * NEWS: Create a new section for the next release branch.
2260 Rename the section of the current branch, now that it has
2261 been cut.
2262
2263 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2264
2265 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2266 * version.in: Bump version to 7.5.50.20120718-cvs.
2267
2268 2012-07-17 Keith Seitz <keiths@redhat.com>
2269
2270 * linespec.c (linespec_parse_line_offset): Make parameter
2271 const.
2272
2273 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 PR 11914
2276 * f-valprint.c (info_common_command): New variable frame_id.
2277 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2278 * printcmd.c (print_variable_and_value): Extend function comment.
2279 Add comment for invalidated FRAME.
2280 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2281 FI form FRAME_ID after each print_frame_local_vars.
2282 (struct print_variable_and_value_data): Change frame to frame_id.
2283 (do_print_variable_and_value): New variable frame, initialize it from
2284 p->frame_id. Add comment for invalidated FRAME.
2285 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2286 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2287 for invalidated FRAME.
2288
2289 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2290 Pedro Alves <palves@redhat.com>
2291
2292 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2293 loop.
2294
2295 2012-07-16 Tom Tromey <tromey@redhat.com>
2296
2297 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2298
2299 2012-07-15 Doug Evans <dje@google.com>
2300
2301 * dwarf2read.c (stmt_list_hash): New struct.
2302 (type_unit_group): Embed "per_cu" member, remove pointer.
2303 New union member "t", move member "tus" into it, all uses updated.
2304 New member "hash", replaces member "line_offset, all uses updated.
2305 (quick_file_names): Replace member "offset" with "hash", all uses
2306 updated.
2307 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2308 (hash_file_name_entry, eq_file_name_entry): Call them.
2309 (hash_type_unit_group, eq_type_unit_group): Ditto.
2310 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2311 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2312 (dw2_get_file_names): Update.
2313 (create_type_unit_group): Replace "per_cu" arg with "cu".
2314 All callers updated. Fix "quick" (.gdb_index) handling.
2315 (get_type_unit_group): Replace "per_cu" arg with "cu".
2316 All callers updated.
2317 (build_type_unit_groups): Don't reset tu_stats.
2318
2319 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2320 "tab_cur_size". Change member "tab" to be a htab_t.
2321 (create_filename_seen_cache): Update.
2322 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2323 (filename_seen): Update.
2324
2325 2012-07-13 Doug Evans <dje@google.com>
2326
2327 * symtab.c (filename_seen): Update comment.
2328
2329 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 Doug Evans <dje@google.com>
2331
2332 * buildsym.c (end_symtab_1): Split it to ...
2333 (end_symtab_get_static_block): ... this ...
2334 (end_symtab_from_static_block): ... and this function.
2335 (end_symtab, end_expandable_symtab): Call them.
2336 * buildsym.h (end_symtab_get_static_block)
2337 (end_symtab_from_static_block): New declarations.
2338 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2339 Set its valid CU ranges.
2340
2341 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2342
2343 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2344 DW_OP_GNU_parameter_ref.
2345
2346 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2347
2348 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2349 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2350
2351 2012-07-13 Doug Evans <dje@google.com>
2352
2353 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2354 (filename_seen_cache): New struct.
2355 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2356 (create_filename_seen_cache): New function.
2357 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2358 (filename_seen): Delete arg "first". New arg "cache". All callers
2359 updated.
2360 (output_source_filename_data): New struct.
2361 (output_source_filename): Delete arg "first". New arg "data".
2362 All callers updated.
2363 (sources_info): Delete local "first". New locals "data", "cleanups".
2364 Rewrite to use filename_seen_cache.
2365 (add_partial_filename_data): Delete member "first". New member
2366 "filename_seen_cache". All uses updated.
2367 (make_source_files_completion_list): Rewrite to use
2368 filename_seen_cache.
2369
2370 2012-07-12 Doug Evans <dje@google.com>
2371
2372 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2373
2374 2012-07-10 Doug Evans <dje@google.com>
2375
2376 PR gdb/13498
2377 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2378 all_type_unit_groups, type_unit_groups, tu_stats.
2379 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2380 All uses updated. Add type_unit_group to union "s".
2381 (type_unit_group): New struct.
2382 (IS_TYPE_UNIT_GROUP): New macro.
2383 (abbrev_table): Delete unused member "section".
2384 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2385 (dw2_get_cu): Assert not used with type_unit_group.
2386 (dw2_get_primary_cu): New function.
2387 (dw2_build_type_unit_groups_reader): New function.
2388 (dw2_build_type_unit_groups): New function.
2389 (dw2_get_file_names): Assert not called on type units.
2390 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2391 Redo loop to iterate over type unit groups instead of type units.
2392 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2393 (read_abbrev_offset): New function.
2394 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2395 updated.
2396 (create_partial_symtab): New function.
2397 (process_psymtab_comp_unit_reader): Assert not used with type units.
2398 Call create_partial_symtab.
2399 (process_psymtab_type_unit): Delete.
2400 (hash_type_unit_group, eq_type_unit_group): New functions.
2401 (allocate_type_unit_groups_table): New function.
2402 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2403 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2404 (create_type_unit_group, get_type_unit_group): New functions.
2405 (tu_abbrev_offset): New struct.
2406 (sort_tu_by_abbrev_offset): New function.
2407 (add_type_unit_group_to_table): New function.
2408 (build_type_unit_groups): New function.
2409 (build_type_psymtabs_reader): New function.
2410 (build_type_psymtab_dependencies): New function.
2411 (build_type_psymtabs): Rewrite.
2412 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2413 is seen in a type unit.
2414 (process_queue): Move symtab expansion debugging printfs here.
2415 Call process_full_type_unit for type units.
2416 (compute_symtab_includes): Assert not called for type units.
2417 (process_cu_includes): Don't call compute_symtab_includes for
2418 type units.
2419 (process_full_type_unit): New function.
2420 (process_imported_unit_die): Flag an error if called for type units.
2421 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2422 updated. Assert not called for type units.
2423 (read_file_scope): Call dwarf2_start_symtab.
2424 (setup_type_unit_groups): New function.
2425 (read_type_unit_scope): Rewrite.
2426 (abbrev_table_read_table): Initialize abbrev_table->offset.
2427 (abbrev_table_free_cleanup): New function.
2428 (dwarf2_start_symtab): New function.
2429 (load_full_type_unit): Assert not called for type unit groups.
2430 * buildsym.c (finish_block_internal): New arg "expandable".
2431 All callers updated.
2432 (start_symtab): Move most contents to ...
2433 (restart_symtab): ... here. New function.
2434 (reset_symtab_globals): New function.
2435 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2436 Call reset_symtab_globals.
2437 (end_symtab, end_expandable_symtab): New functions.
2438 (set_missing_symtab, augment_type_symtab): New functions.
2439 * buildsym.h (end_expandable_symtab): Declare.
2440 (augment_type_symtab, restart_symtab): Declare.
2441 * psympriv.h (struct partial_symtab): New member "anonymous".
2442 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2443 anonymous psymtabs.
2444 (read_psymtabs_with_filename): Ditto.
2445 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2446 (expand_symtabs_matching_via_partial): Ditto.
2447 (dump_psymtab): Update.
2448 * dictionary.c (dict_add_pending): New function.
2449 * dictionary.h (dict_add_pending): Declare.
2450
2451 2012-07-09 Doug Evans <dje@google.com>
2452
2453 * buildsym.c (start_subfile): Remove unnecessary check for
2454 name == NULL.
2455
2456 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2457
2458 * dwarf2read.c (load_full_type_unit): Simplify.
2459
2460 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2461 to struct signatured_type **. All uses updated.
2462
2463 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2464 All callers updated.
2465
2466 2012-07-09 Tom Tromey <tromey@redhat.com>
2467
2468 * c-exp.y (check_parameter_typelist): New function.
2469 (parameter_typelist): Call it.
2470 * eval.c (make_params): Handle '(void)' case.
2471 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2472 '(void)' case.
2473
2474 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2475
2476 * common/linux-ptrace.c: Include gdb_assert.h.
2477 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2478 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2479 stdint.h.
2480 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2481 functions.
2482 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2483 * linux-nat.c (linux_child_post_attach)
2484 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2485
2486 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2489 nptl <2.7 bug workaround for core files.
2490
2491 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2494 clearing.
2495 (save_siginfo): Remove.
2496 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2497 call.
2498 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2499 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2500 * linux-nat.h (struct lwp_info): Remove field siginfo.
2501
2502 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2503
2504 Code cleanup for the next patch.
2505 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2506 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2507 call for it.
2508 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2509 (ia64_linux_stopped_data_address):
2510 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2511 the return value.
2512 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2513 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2514 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2515 call for it.
2516
2517 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 PR 14321
2520 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2521 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2522
2523 2012-07-06 Tom Tromey <tromey@redhat.com>
2524
2525 * c-exp.y (DOTDOTDOT): New token.
2526 (func_mod, exp): Use parameter_typelist.
2527 (parameter_typelist): New production.
2528 (tokentab3): Add "..." token.
2529 * eval.c (make_params): Handle varargs.
2530 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2531 varargs.
2532
2533 2012-07-06 Tom Tromey <tromey@redhat.com>
2534
2535 PR exp/9608:
2536 * c-exp.y (%union) <tvec>: Change type.
2537 (func_mod): Now uses <tvec> type.
2538 (exp): Update for tvec change.
2539 (direct_abs_decl): Push the typelist.
2540 (func_mod): Return a typelist.
2541 (nonempty_typelist): Update for tvec change.
2542 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2543 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2544 * parse.c (pop_type_list): New function.
2545 (push_typelist): New function.
2546 (follow_types): Handle tp_function_with_arguments.
2547 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2548 (enum type_pieces) <tp_function_with_arguments>: New constant.
2549 (union type_stack_elt) <typelist_val>: New field.
2550 (push_typelist): Declare.
2551
2552 2012-07-06 Tom Tromey <tromey@redhat.com>
2553
2554 * c-exp.y (%union) <type_stack>: New field.
2555 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2556 (ptr_operator_ts): New production.
2557 (ptype): Update.
2558 * parse.c (type_stack_reserve): New function.
2559 (check_type_stack_depth): Use it.
2560 (pop_type_stack, append_type_stack, push_type_stack)
2561 (get_type_stack, type_stack_cleanup): New functions.
2562 (follow_types): Handle tp_type_stack.
2563 (_initialize_parse): Simplify initialization.
2564 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2565 constant.
2566 (union type_stack_elt) <stack_val>: New field.
2567 (get_type_stack, append_type_stack, push_type_stack)
2568 (type_stack_cleanup): Declare.
2569
2570 2012-07-06 Tom Tromey <tromey@redhat.com>
2571
2572 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2573 Remove.
2574 (struct type_stack): New.
2575 * parse.c (type_stack, type_stack_size, type_stack_depth):
2576 Remove.
2577 (type_stack): New global.
2578 (parse_exp_in_context, check_type_stack_depth)
2579 (insert_into_type_stack, insert_type, push_type, push_type_int)
2580 (insert_type_address_space, pop_type, pop_type_int)
2581 (_initialize_parse): Update.
2582
2583 2012-07-06 Tom Tromey <tromey@redhat.com>
2584
2585 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2586 Remove %type.
2587
2588 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2589
2590 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2591
2592 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2593 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2596 alloca with xmalloc/xfree.
2597
2598 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2599
2600 * MAINTAINERS (Write After Approval): Add myself to the list.
2601
2602 2012-07-05 Doug Evans <dje@google.com>
2603
2604 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2605
2606 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2607
2608 * ax-gdb.c (cli/cli-utils.h): New include.
2609 (linespec.h): Ditto.
2610 (agent_eval_command_one): New function.
2611 (agent_command_1): Ditto.
2612 (agent_command): Call function agent_command_1.
2613 (agent_eval_command): Ditto.
2614 (_initialize_ax_gdb): Change help for "maint agent"
2615 and "maint agent-eval".
2616
2617 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2618
2619 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2620 * cli/cli-utils.c (check_for_argument): New function.
2621 * cli/cli-utils.h (check_for_argument): Ditto.
2622
2623 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2624
2625 * NEWS: Mention x32 ABI support.
2626
2627 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2628
2629 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2630 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2631
2632 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2633 and pc_regnum_from_eax to -1. Update SP regnum from
2634 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2635 needed.
2636
2637 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2638 pc_regnum_from_eax.
2639
2640 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2641
2642 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2643 * dwarf2expr.h: Include gdbtypes.h.
2644 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2645 these forward declarations.
2646 (cu_offset, sect_offset): Move these ...
2647 * gdbtypes.h: Remove include dwarf2expr.h.
2648 (cu_offset, sect_offset): ... here.
2649
2650 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2651
2652 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2653 (amd64_linux_sigtramp_code): This.
2654 (amd64_x32_linux_sigtramp_code): New.
2655 (LINUX_SIGTRAMP_LEN): Updated.
2656 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2657
2658 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2661
2662 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2663
2664 * config.in: Regenerate.
2665 * configure: Regenerate.
2666 * configure.ac: Remove check for gnu/libc-version.h.
2667 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2668 gnu/libc-version.h.
2669 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2670 variables libc_version, libc_major and libc_minor. Replace sscanf by
2671 inferior_has_bug. Extend the comment.
2672
2673 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2674
2675 * linux-thread-db.c (inferior_has_bug): New function.
2676 (thread_db_find_new_threads_silently): Return boolean as checked by
2677 inferior_has_bug, describe it in the comments.
2678 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2679 earlier. Abort the initialization if it returned non-zero.
2680 (thread_db_new_objfile): Exclude debug files.
2681 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2682 if UNTIL_NO_NEW,
2683
2684 2012-07-02 Doug Evans <dje@google.com>
2685
2686 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2687 related to queue management.
2688
2689 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2690 instead of "debug dwarf2-die" in debugging printfs.
2691 (create_debug_info_hash_table_reader): Ditto.
2692 (create_debug_info_hash_table): Ditto.
2693 (init_dwo_file): Ditto.
2694 (init_cutu_and_read_dies): Add debugging printf.
2695 (init_cutu_and_read_dies_no_follow): Ditto.
2696 (process_psymtab_comp_unit_reader): Ditto.
2697
2698 2012-07-02 Stan Shebs <stan@codesourcery.com>
2699
2700 Add target-side support for dynamic printf.
2701 * NEWS: Mention the additional style.
2702 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2703 (struct bp_location): New field cmd_bytecode.
2704 * breakpoint.c: Include format.h.
2705 (disconnected_dprintf): New global.
2706 (parse_cmd_to_aexpr): New function.
2707 (build_target_command_list): New function.
2708 (insert_bp_location): Call it.
2709 (remove_breakpoints_pid): Skip dprintf breakpoints.
2710 (print_one_breakpoint_location): Ditto.
2711 (dprintf_style_agent): New global.
2712 (dprintf_style_enums): Add dprintf_style_agent.
2713 (update_dprintf_command_list): Add agent case.
2714 (agent_printf_command): New function.
2715 (_initialize_breakpoint): Add new commands.
2716 * common/ax.def (printf): New bytecode.
2717 * ax.h (ax_string): Declare.
2718 * ax-gdb.h (gen_printf): Declare.
2719 * ax-gdb.c: Include cli-utils.h, format.h.
2720 (gen_printf): New function.
2721 (maint_agent_print_command): New function.
2722 (_initialize_ax_gdb): Add maint agent-printf command.
2723 * ax-general.c (ax_string): New function.
2724 (ax_print): Add printf disassembly.
2725 * Makefile.in (SFILES): Add format.c
2726 (COMMON_OBS): Add format.o.
2727 * common/format.h: New file.
2728 * common/format.c: New file.
2729 * printcmd.c: Include format.h.
2730 (ui_printf): Call parse_format_string.
2731 * remote.c (remote_state): New field breakpoint_commands.
2732 (PACKET_BreakpointCommands): New enum.
2733 (remote_breakpoint_commands_feature): New function.
2734 (remote_protocol_features): Add new BreakpointCommands entry.
2735 (remote_can_run_breakpoint_commands): New function.
2736 (remote_add_target_side_commands): New function.
2737 (remote_insert_breakpoint): Call it.
2738 (remote_insert_hw_breakpoint): Ditto.
2739 (_initialize_remote): Add new packet configuration for
2740 target-side breakpoint commands.
2741 * target.h (struct target_ops): New field
2742 to_can_run_breakpoint_commands.
2743 (target_can_run_breakpoint_commands): New macro.
2744 * target.c (update_current_target): Handle
2745 to_can_run_breakpoint_commands.
2746
2747 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2748
2749 Execute -ix and -iex only after system and user gdbinit files.
2750 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2751 processing down after gdbinit files.
2752
2753 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2754
2755 Add fnmatch-gnu module.
2756 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2757 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2758 * gnulib/aclocal.m4: Regenerate.
2759 * gnulib/config.in: Regenerate.
2760 * gnulib/configure: Regenerate.
2761 * gnulib/import/dummy.c: Remove.
2762 * gnulib/import/Makefile.am: Regenerate.
2763 * gnulib/import/Makefile.in: Likewise.
2764 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2765 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2766 * gnulib/import/alloca.c: New file.
2767 * gnulib/import/alloca.in.h: Likewise.
2768 * gnulib/import/config.charset: Likewise.
2769 * gnulib/import/fnmatch.c: Likewise.
2770 * gnulib/import/fnmatch.in.h: Likewise.
2771 * gnulib/import/fnmatch_loop.c: Likewise.
2772 * gnulib/import/localcharset.c: Likewise.
2773 * gnulib/import/localcharset.h: Likewise.
2774 * gnulib/import/m4/alloca.m4: Likewise.
2775 * gnulib/import/m4/codeset.m4: Likewise.
2776 * gnulib/import/m4/configmake.m4: Likewise.
2777 * gnulib/import/m4/fcntl-o.m4: Likewise.
2778 * gnulib/import/m4/fnmatch.m4: Likewise.
2779 * gnulib/import/m4/glibc21.m4: Likewise.
2780 * gnulib/import/m4/localcharset.m4: Likewise.
2781 * gnulib/import/m4/locale-fr.m4: Likewise.
2782 * gnulib/import/m4/locale-ja.m4: Likewise.
2783 * gnulib/import/m4/locale-zh.m4: Likewise.
2784 * gnulib/import/m4/mbrtowc.m4: Likewise.
2785 * gnulib/import/m4/mbsinit.m4: Likewise.
2786 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2787 * gnulib/import/m4/mbstate_t.m4: Likewise.
2788 * gnulib/import/m4/stdbool.m4: Likewise.
2789 * gnulib/import/m4/wchar_h.m4: Likewise.
2790 * gnulib/import/m4/wctype_h.m4: Likewise.
2791 * gnulib/import/m4/wint_t.m4: Likewise.
2792 * gnulib/import/mbrtowc.c: Likewise.
2793 * gnulib/import/mbsinit.c: Likewise.
2794 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2795 * gnulib/import/mbsrtowcs-state.c: Likewise.
2796 * gnulib/import/mbsrtowcs.c: Likewise.
2797 * gnulib/import/ref-add.sin: Likewise.
2798 * gnulib/import/ref-del.sin: Likewise.
2799 * gnulib/import/stdbool.in.h: Likewise.
2800 * gnulib/import/streq.h: Likewise.
2801 * gnulib/import/strnlen1.c: Likewise.
2802 * gnulib/import/strnlen1.h: Likewise.
2803 * gnulib/import/verify.h: Likewise.
2804 * gnulib/import/wchar.in.h: Likewise.
2805 * gnulib/import/wctype.in.h: Likewise.
2806
2807 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2808
2809 Support shell wildcards for 'set auto-load safe-path'.
2810 * auto-load.c: Include fnmatch.h.
2811 (filename_is_in_dir): Rename to ...
2812 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2813 it. Update function comment. Rename dir_len to pattern_len. New
2814 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2815 messages. Use gdb_filename_fnmatch.
2816 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2817 pattern.
2818 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2819 * defs.h (gdb_filename_fnmatch): New declaration.
2820 * utils.c: Include fnmatch.h.
2821 (gdb_filename_fnmatch): New function.
2822
2823 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2824
2825 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2826 `-probe' and `-probe-stap' options.
2827
2828 2012-07-01 Yao Qi <yao@codesourcery.com>
2829
2830 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2831 always_inserted_off, and always_inserted_enums.
2832 Change always_inserted_mode's type to 'enum auto_boolean'.
2833 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2834 callers.
2835 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2836 of add_setshow_enum_cmd.
2837 * infrun.c: Remove can_use_displaced_stepping_auto,
2838 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2839 can_use_displaced_stepping_enum.
2840 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2841 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2842 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2843 add_setshow_enum_cmd.
2844
2845 2012-06-30 Doug Evans <dje@google.com>
2846
2847 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2848 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2849 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2850
2851 2012-06-29 Doug Evans <dje@google.com>
2852
2853 * linespec.c: #include "stack.h".
2854 (decode_line_with_current_source): Moved here from symtab.c and
2855 renamed from decode_line_spec. All callers updated.
2856 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2857 renamed from decode_line_spec_1. All callers updated.
2858 * linespec.h (decode_line_with_current_source): Move declaration here
2859 from symtab.h and renamed from decode_line_spec.
2860 (decode_line_with_last_displayed): Move declaration here from symtab.h
2861 and renamed from decode_line_spec_1.
2862 * macrocmd.c: #include "linespec.h".
2863 * symtab.c: Remove #include "linespec.h".
2864
2865 2012-06-28 Doug Evans <dje@google.com>
2866
2867 * dwarf2read.c (get_cu_length): New function.
2868 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2869 (create_debug_types_hash_table): Ditto.
2870 (init_cutu_and_read_dies): Ditto.
2871 (init_cutu_and_read_dies_no_follow): Ditto.
2872
2873 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2874
2875 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2876 (struct abbrev_table): Define.
2877 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2878 abbrev_table.
2879 (init_cutu_and_read_dies): Update.
2880 (abbrev_table_alloc_abbrev): New function. Replaces
2881 dwarf_alloc_abbrev. All callers updated.
2882 (abbrev_table_add_abbrev): New function.
2883 (abbrev_table_lookup_abbrev): New function. Replaces
2884 dwarf2_lookup_abbrev. All callers updated.
2885 (abbrev_table_read_table): New function. Contents moved here from
2886 dwarf2_read_abbrevs.
2887 (dwarf2_read_abbrevs): Call it.
2888 (abbrev_table_free): New function.
2889 (dwarf2_free_abbrev_table): Call it.
2890
2891 2012-06-28 Stan Shebs <stan@codesourcery.com>
2892
2893 * osdata.c (info_osdata_command): Filter out "Title" columns
2894 from non-MI uses.
2895 * common/linux-osdata.c (struct osdata_type): Add title field.
2896 (osdata_table): Add titles to each entry.
2897 (linux_command_xfer_osdata): Add a column for title data.
2898
2899 2012-06-28 Stan Shebs <stan@codesourcery.com>
2900
2901 Make logging work for MI.
2902 * NEWS: Mention it.
2903 * interps.h (interp_set_logging_ftype): New typedef.
2904 (struct interp_procs): New field set_logging_proc.
2905 (current_interp_set_logging): Declare.
2906 * interps.c (current_interp_set_logging): New function.
2907 * cli/cli-logging.c: Include interps.h.
2908 (set_logging_redirect): Call current_interp_set_logging.
2909 (pop_output_files): Ditto.
2910 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2911 * mi/mi-console.h (mi_console_set_raw): Declare.
2912 * mi/mi-console.c (mi_console_set_raw): New function.
2913 * mi/mi-interp.c (saved_raw_stdout): New global.
2914 (mi_set_logging): New function.
2915 (_initialize_mi_interp): Add it to interp procs.
2916
2917 2012-06-28 Doug Evans <dje@google.com>
2918
2919 * symtab.c (lookup_symbol_aux_objfile): Use
2920 ALL_OBJFILE_PRIMARY_SYMTABS.
2921
2922 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2923
2924 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2925
2926 * common/buffer.c: Include inttypes.h and stdint.h.
2927 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2928
2929 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2930 Pedro Alves <palves@redhat.com>
2931
2932 * gdbthread.h (ALL_THREADS): New macro.
2933 (thread_list): Declare.
2934 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2935 going, but instead fall through to the stepping handling.
2936 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2937 the passed in signal. Adjust debug output.
2938 (resume_callback): Rename to ...
2939 (linux_nat_resume_callback): ... this. Pass the thread's last
2940 stop signal, if in "pass" state.
2941 (linux_nat_resume): Adjust to rename.
2942 (stop_wait_callback): New assertion. Don't respawn signals;
2943 instead let the LWP remain with SIGNALLED set.
2944 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2945 * remote.c (append_pending_thread_resumptions): New.
2946 (remote_vcont_resume): Call it.
2947 * target.h (target_resume): Extend comment.
2948
2949 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2950
2951 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2952
2953 2012-06-27 Doug Evans <dje@google.com>
2954
2955 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2956 Delete have_addr_base, unused. All uses updated.
2957 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2958 (dwarf2_get_pc_bounds): Add ranges_base.
2959 (dwarf2_record_block_ranges): Ditto.
2960
2961 2012-06-27 Tom Tromey <tromey@redhat.com>
2962
2963 PR macros/7961:
2964 * varobj.c (varobj_create): Update.
2965 (varobj_set_value): Update.
2966 * tracepoint.c (validate_actionline): Update.
2967 (encode_actions_1): Update.
2968 * parse.c (parse_exp_1): Add 'pc' argument.
2969 (parse_exp_in_context): Add 'pc' argument. Change how
2970 expression_context_pc is set.
2971 (parse_expression): Update.
2972 (parse_field_expression): Update.
2973 * expression.h (parse_exp_1): Update.
2974 * eval.c (parse_to_comma_and_eval): Update.
2975 * breakpoint.c (set_breakpoint_condition): Update.
2976 (update_watchpoint): Update.
2977 (init_breakpoint_sal): Update
2978 (find_condition_and_thread): Update.
2979 (watch_command_1): Update.
2980 (update_breakpoint_locations): Update.
2981 * ada-lang.c (ada_read_renaming_var_value): Update.
2982 (create_excep_cond_exprs): Update.
2983
2984 2012-06-27 Doug Evans <dje@google.com>
2985
2986 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2987 type units.
2988
2989 2012-06-26 Doug Evans <dje@google.com>
2990
2991 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2992 prototype.
2993 (error_check_comp_unit_head): New arg abbrev_section. All callers
2994 updated.
2995 (read_and_check_comp_unit_head): Ditto.
2996 (read_and_check_type_unit_head): Ditto.
2997
2998 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2999
3000 New attribute 'last' for gdb.Symtab_and_line.
3001 * NEWS (Python Scripting): Add entry about the new attribute.
3002 * python/py-symtab.c (salpy_get_last): New function which
3003 implements the get method for the 'last' attribute of
3004 gdb.Symtab_and_line.
3005 (sal_object_getset): Add entry for the 'last' attribute.
3006
3007 2012-06-26 Doug Evans <dje@google.com>
3008
3009 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3010 (dwo_sections): Add macinfo, macro.
3011 (dwarf2_locate_dwo_sections): Watch for macro sections.
3012 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3013 All callers updated. Handle DWO files.
3014
3015 * NEWS: Mention new options "set debug dwarf2-read" and
3016 "set debug symtab-create".
3017 * dwarf2read.c (dwarf2_read_debug): New static global.
3018 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3019 (process_queue): Ditto.
3020 (process_full_comp_unit): Ditto.
3021 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3022 * elfread.c (elf_symfile_read): Add debugging printf.
3023 * minsyms.c (install_minimal_symbols): Ditto.
3024 * psymtab.c (allocate_psymtab): Ditto.
3025 * symfile.c (allocate_symtab): Ditto.
3026 * symtab.c (symtab_create_debug): New global.
3027 (_initialize_symtab): Add new option "set debug symtab-create".
3028 * symtab.h (symtab_create_debug): Declare.
3029
3030 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3031 (lookup_dwo_type_unit): Ditto.
3032
3033 2012-06-26 Roland McGrath <roland@hack.frob.com>
3034 H.J. Lu <hongjiu.lu@intel.com>
3035
3036 * amd64-linux-nat.c: Include <sys/user.h>.
3037 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3038 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3039 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3040
3041 * configure.ac: Check if the fs_base and gs_base members of
3042 `struct user_regs_struct' exist.
3043 * config.in: Regenerated.
3044 * configure: Likewise.
3045
3046 2012-06-25 Michael Eager <eager@eagercon.com>
3047
3048 PR python/14291
3049 * python/python.c (gdbpy_write): Check for interrupted output.
3050
3051 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3052
3053 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3054 register as a stack alignment in ARM mode.
3055
3056 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3059 * gnulib/config.in: Regenerate.
3060 * gnulib/configure: Likewise.
3061 * gnulib/import/m4/extensions.m4: Update it.
3062 * gnulib/import/m4/gnulib-common.m4: Likewise.
3063 * gnulib/import/m4/memmem.m4: Likewise.
3064 * gnulib/import/m4/mmap-anon.m4: Likewise.
3065 * gnulib/import/m4/multiarch.m4: Likewise.
3066 * gnulib/import/stdint.in.h: Likewise.
3067
3068 2012-06-24 Yao Qi <yao@codesourcery.com>
3069
3070 * corefile.c (write_memory_with_notification): New.
3071 * gdbcore.h: Declare write_memory_with_notification.
3072 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3073 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3074 * valops.c (value_assign): Likewise.
3075 * python/py-inferior.c (infpy_write_memory): Call
3076 'write_memory_with_notification'.
3077
3078 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3079
3080 * cc-with-index.sh: Use also -ex "set auto-load no".
3081
3082 2012-06-23 Doug Evans <dje@google.com>
3083
3084 PR 14125
3085 * NEWS: Document additions to .gdb_index.
3086 * dwarf2read.c: #include "gdb/gdb-index.h".
3087 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3088 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3089 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3090 (dwarf2_read_index): Recognize version 7.
3091 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3092 block_kind, domain): All callers updated.
3093 (dw2_find_symbol_file): Handle new index CU values.
3094 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3095 (add_index_entry): New args is_static, kind. All callers updated.
3096 (offset_type_compare, uniquify_cu_indices): New functions
3097 (symbol_kind): New function.
3098 (write_psymtabs_to_index): Remove duplicate CU values.
3099 (write_psymtabs_to_index): Write .gdb_index version 7.
3100
3101 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3102
3103 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3104 * configure: Regenerate.
3105
3106 2012-06-20 Yao Qi <yao@codesourcery.com>
3107
3108 * python/py-inferior.c: Update comments of infpy_read_memory
3109 and infpy_write_memory.
3110
3111 2012-06-19 Tom Tromey <tromey@redhat.com>
3112
3113 PR exp/9514:
3114 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3115 (push_type_address_space): Remove.
3116 * parse.c (insert_into_type_stack): New function.
3117 (insert_type): Likewise.
3118 (insert_type_address_space): Rename from push_type_address_space.
3119 Insert tp_space_identifier.
3120 * c-exp.y (ptr_operator): New production.
3121 (abs_decl): Use ptr_operator.
3122 (space_identifier): Call insert_type_address_space.
3123 (ptype): Don't use const_or_volatile_or_space_identifier.
3124 (const_or_volatile_noopt): Call insert_type.
3125 (conversion_type_id, conversion_declarator): New productions.
3126 (operator): Use conversion_type_id.
3127
3128 2012-06-18 Doug Evans <dje@google.com>
3129
3130 * symtab.h (minimal_symbol): New member created_by_gdb.
3131 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3132 created by gdb.
3133 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3134 (search_symbols): Call it instead of lookup_symbol.
3135 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3136
3137 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3138 Adjust address for DW_OP_GNU_addr_index.
3139 * dwarf2expr.h (dwarf_expr_context): Update comment.
3140 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3141 all callers updated. Handle TLS vars described with
3142 DW_OP_GNU_const_index.
3143 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3144 and DW_OP_GNU_const_index.
3145 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3146
3147 * block.c (find_block_in_blockvector): Make explicit the fact that we
3148 ignore GLOBAL_BLOCK.
3149
3150 2012-06-18 Tom Tromey <tromey@redhat.com>
3151
3152 * c-exp.y (operator): Remove trailing space after "delete" and
3153 "delete[]".
3154
3155 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3156 Jan Kratochvil <jan.kratochvil@redhat.com>
3157
3158 Switch i386 and derived targets to ON_STACK.
3159 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3160 (amd64_dicos_init_abi): Remove its installment.
3161 * dicos-tdep.c (dicos_init_abi): Remove the
3162 set_gdbarch_call_dummy_location call. Update the comment here.
3163 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3164 (i386_dicos_init_abi): Remove its installment.
3165 * i386-tdep.c (i386_push_dummy_code): New function.
3166 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3167 i386_push_dummy_code.
3168
3169 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 Remove stale dummy frames.
3172 * breakpoint.c: Include dummy-frame.h.
3173 (longjmp_breakpoint_ops): New variable.
3174 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3175 bp_longjmp_call_dummy.
3176 (bpstat_what, bptype_string, print_one_breakpoint_location)
3177 (init_bp_location): Support bp_longjmp_call_dummy.
3178 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3179 (set_longjmp_breakpoint_for_call_dummy)
3180 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3181 functions.
3182 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3183 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3184 FIXME comment and extend the other comment for bp_call_dummy.
3185 (set_longjmp_breakpoint_for_call_dummy)
3186 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3187 * dummy-frame.c: Include gdbthread.h.
3188 (pop_dummy_frame_bpt): New function.
3189 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3190 (dummy_frame_discard): New function.
3191 (cleanup_dummy_frames): Update the comment about longjmps.
3192 * dummy-frame.h (dummy_frame_discard): New declaration.
3193 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3194 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3195 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3196 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3197 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3198 keep_going if IS_LONGJMP and there is no other reason to stop.
3199
3200 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3201
3202 * remote-sim.c (sim_command_completer): Initialize
3203 variable 'result'.
3204
3205 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3206
3207 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3208 * dwarf2loc.c (call_site_parameter_matches): Support
3209 CALL_SITE_PARAMETER_PARAM_OFFSET.
3210 (needs_dwarf_reg_entry_value): Push stub value.
3211 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3212 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3213 * gdbtypes.h (enum call_site_parameter_kind): New item
3214 CALL_SITE_PARAMETER_PARAM_OFFSET.
3215 (struct call_site.parameter.u): New field param_offset.
3216
3217 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3218
3219 Code cleanup: Generalize call_site.parameter key.
3220 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3221 variable dwarf_reg. New variable kind_u. Update parameters to
3222 push_dwarf_reg_entry_value.
3223 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3224 * dwarf2expr.h (enum call_site_parameter_kind)
3225 (union call_site_parameter_u): Forward declarations.
3226 (struct dwarf_expr_context_funcs): Update parameters and their
3227 description for push_dwarf_reg_entry_value.
3228 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3229 * dwarf2loc.c (call_site_parameter_matches): New function.
3230 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3231 description. Use call_site_parameter_matches.
3232 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3233 Update parameters and their description.
3234 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3235 New variable kind_u. Adjust the caller for updated parameters.
3236 (needs_dwarf_reg_entry_value): Update parameters.
3237 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3238 instead of attr. Update for the changed fields of struct
3239 call_site_parameter.
3240 * gdbtypes.h: Include dwarf2expr.h.
3241 (enum call_site_parameter_kind): New.
3242 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3243 fb_offset into new union u.
3244
3245 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3246
3247 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3248 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3249 for x32.
3250
3251 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3252
3253 * amd64-linux-nat.c (compat_x32_clock_t): New.
3254 (compat_x32_siginfo_t): Likewise.
3255 (compat_x32_siginfo_from_siginfo): Likewise.
3256 (siginfo_from_compat_x32_siginfo): Likewise.
3257 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3258 and siginfo_from_compat_x32_siginfo for x32.
3259
3260 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3261
3262 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3263
3264 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3265
3266 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3267 instead of gdbarch_ptr_bit.
3268 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3269 (amd64_supply_native_gregset): Likewise.
3270 (amd64_collect_native_gregset): Likewise.
3271 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3272 (amd64_supply_xsave): Likewise.
3273 (amd64_collect_fxsave): Likewise.
3274 (amd64_collect_xsave): Likewise.
3275
3276 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3277
3278 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3279 (amd64_linux_read_description): Check DS segment register for
3280 x32 process.
3281
3282 2012-06-15 Tom Tromey <tromey@redhat.com>
3283
3284 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3285 init_cutu_and_read_dies.
3286
3287 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3288
3289 * MAINTAINERS (Write After Approval): Add myself to the list.
3290
3291 2012-06-15 Tom Tromey <tromey@redhat.com>
3292
3293 * valops.c (value_find_oload_method_list): Now static.
3294 * value.h (value_find_oload_method_list): Don't declare.
3295
3296 2012-06-15 Tom Tromey <tromey@redhat.com>
3297
3298 * valops.c (find_overload_match): Use value_ind.
3299
3300 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3301
3302 * infrun.c (handle_inferior_event): Correct indentation.
3303
3304 2012-06-14 Doug Evans <dje@google.com>
3305
3306 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3307 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3308 All uses updated.
3309 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3310 updated. Handle DEBUG_LOC_START_LENGTH.
3311 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3312 (loclist_describe_location): Ditto.
3313
3314 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3315
3316 PR backtrace/13866
3317 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3318 after hiding inline functions.
3319
3320 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3321
3322 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3323 _initialize_inf_ttrace.
3324
3325 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3326
3327 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3328 _initialize_hppa_hpux_nat.
3329
3330 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3331
3332 * remote-sim.c (sim_command_completer): Change type of return
3333 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3334
3335 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3336 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 PR tdep/14222
3339 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3340 stack on a 16-byte boundary.
3341
3342 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3343
3344 * jit.c (finalize_symtab): Set function's return type to 'void' by
3345 default.
3346
3347 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3348 H.J. Lu <hongjiu.lu@intel.com>
3349
3350 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3351 Move bits common to both the classic LP64 and the new x32 ILP32
3352 ABI here.
3353 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3354 (amd64_x32_linux_init_abi): New function.
3355 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3356 subtype.
3357
3358 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3359 * i386-tdep.c (i386_pseudo_register_name): Make public.
3360 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3361 * amd64-tdep.c (amd64_dword_names): Add "eip".
3362 (amd64_x32_pseudo_register_type): New function
3363 (amd64_x32_init_abi): New function.
3364
3365 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3366
3367 PR build/14003
3368 * inferior.h (struct inferior_suspend_state): Comment out.
3369 (struct inferior): Comment out the field suspend.
3370 * infrun.c (struct infcall_suspend_state): Comment out the field
3371 inferior_suspend.
3372 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3373 out its assignment.
3374
3375 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3378 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3379 function comment. Return ERROR for unresolved cases. Implement
3380 returning proper NAME.
3381 (yylex): Accept also NAME from classify_inner_name.
3382 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3383 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3384 LOC_TYPEDEF type.
3385 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3386
3387 2012-06-13 Tom Tromey <tromey@redhat.com>
3388
3389 * breakpoint.c (condition_completer): New function.
3390 (_initialize_breakpoint): Use it.
3391 * value.c (complete_internalvar): New function.
3392 * value.h (complete_internalvar): Declare.
3393
3394 2012-06-13 Tom Tromey <tromey@redhat.com>
3395
3396 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3397 * breakpoint.c (catch_syscall_completer): Return a VEC.
3398 * cli/cli-cmds.c (complete_command): Update.
3399 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3400 (complete_on_enum): Likewise.
3401 * command.h: Include gdb_vecs.h.
3402 (completer_ftype): Change return type.
3403 (complete_on_cmdlist, complete_on_enum): Likewise.
3404 * completer.c (noop_completer, filename_completer)
3405 (location_completer): Return a VEC.
3406 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3407 to a VEC.
3408 (expression_completer, complete_line_internal, complete_line)
3409 (command_completer): Return a VEC.
3410 (gdb_completion_word_break_characters, line_completion_function):
3411 Update.
3412 * completer.h: Include gdb_vecs.h.
3413 (complete_line, noop_completer, filename_completer)
3414 (expression_completer, location_completer, command_completer):
3415 Update.
3416 * f-lang.c (f_word_break_characters): Return a VEC.
3417 * interps.c (interpreter_completer): Return a VEC.
3418 * language.h (struct language_defn)
3419 <la_make_symbol_completion_list>: Return a VEC.
3420 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3421 * symtab.c (free_completion_list): Take a VEC.
3422 (return_val_size, return_val_index): Remove.
3423 (return_val): Now a VEC.
3424 (completion_list_add_name): Update.
3425 (default_make_symbol_completion_list_break_on)
3426 (default_make_symbol_completion_list, make_symbol_completion_list)
3427 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3428 Return a VEC.
3429 (add_filename_to_list): Update.
3430 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3431 <list>: Now a VEC.
3432 (maybe_add_partial_symtab_filename): Update.
3433 (make_source_files_completion_list): Return a VEC.
3434 * symtab.h (default_make_symbol_completion_list_break_on)
3435 (default_make_symbol_completion_list, make_symbol_completion_list)
3436 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3437 (make_source_files_completion_list): Update.
3438
3439 2012-06-13 Tom Tromey <tromey@redhat.com>
3440
3441 * breakpoint.c (add_catch_command): Use completer_ftype.
3442 * breakpoint.h: Include command.h.
3443 (add_catch_command): Use completer_ftype.
3444 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3445 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3446 Use completer_ftype.
3447 * command.h (completer_ftype): New typedef.
3448 (set_cmd_completer): Use it.
3449 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3450 completer_ftype.
3451
3452 2012-06-13 Pedro Alves <palves@redhat.com>
3453
3454 Partial revert of previous change.
3455
3456 * serial.c (scb_base): New global.
3457 (serial_for_fd): New.
3458 (serial_open, serial_fdopen_ops): Link new serial in open serials
3459 chain.
3460 (do_serial_close): Unlink serial from the open serials chain.
3461
3462 2012-06-12 Pedro Alves <palves@redhat.com>
3463
3464 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3465 threads here.
3466 (prepare_for_detach): No longer context switch here in non-stop
3467 mode.
3468 (fetch_inferior_event): Ditto.
3469 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3470 to the event thread before removing breakpoints. Switch to the
3471 event thread before inserting breakpoints and resuming.
3472 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3473 event thread before resuming.
3474 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3475 Switch to the event thread before removing breakpoints.
3476
3477 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3478
3479 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3480 special characters correctly for the Windows shells. See
3481 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3482 report.
3483 [!__MINGW32__]: Remove extra double quote character from special
3484 characters.
3485
3486 2012-06-11 Stan Shebs <stan@codesourcery.com>
3487
3488 * ui-out.h: Remove #if 0 declarations.
3489 * ui-out.c: Remove #if 0 functions.
3490
3491 2012-06-11 Pedro Alves <palves@redhat.com>
3492
3493 * ser-base.c (run_async_handler_and_reschedule): New.
3494 (fd_event, push_event): Use it.
3495 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3496 reference count to 1.
3497 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3498 instead of xfree.
3499 (serial_is_open, serial_ref, serial_unref): New.
3500 * serial.h (serial_open): Adjust comment.
3501 (serial_is_open): Declare.
3502 (serial_close): Adjust comment.
3503 (serial_ref, serial_unref) Declare.
3504 (struct serial): New field 'refcnt'.
3505
3506 2012-06-11 Pedro Alves <palves@redhat.com>
3507
3508 Remove #if 0'd "connect" command, and unnecessary associated
3509 refcounting and serial reuse bits.
3510
3511 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3512 * serial.c (last_serial_opened): Delete.
3513 (scb_base): Delete.
3514 (serial_open): Adjust.
3515 (serial_for_fd): Delete.
3516 (serial_fdopen_ops, do_serial_close): Adjust.
3517 (serial_fdopen_ops): Adjust.
3518
3519 2012-06-11 Pedro Alves <palves@redhat.com>
3520
3521 * serial.c (do_serial_close): Remove early return when SCB is
3522 null.
3523
3524 2012-06-11 Tom Tromey <tromey@redhat.com>
3525
3526 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3527
3528 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 Fix regression by the "ambiguous linespec" series.
3531 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3532 get_last_displayed_symtab and get_last_displayed_line and depending
3533 on CURSAL.
3534
3535 2012-06-11 Tom Tromey <tromey@redhat.com>
3536
3537 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3538 (dw2_find_symbol_file): Use it.
3539
3540 2012-06-11 Michael Eager <eager@eagercon.com>
3541
3542 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3543 * mips-linux-tdep.h (mips_signals): New
3544
3545 2012-06-11 Tom Tromey <tromey@redhat.com>
3546
3547 * infrun.c (handle_inferior_event)
3548 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3549 breakpoint.
3550 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3551 exception logic in all cases. Update comments.
3552 (insert_longjmp_resume_breakpoint): Set the exception resume
3553 breakpoint.
3554
3555 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3556
3557 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3558
3559 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3560
3561 * valarith.c (binop_types_user_defined_p): Fix a typo.
3562
3563 2012-06-08 Yao Qi <yao@codesourcery.com>
3564 Chung-Lin Tang <cltang@codesourcery.com>
3565
3566 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3567 * arch-utils.h: Declare.
3568 * gdbarch.sh: Add return_in_first_hidden_param_p.
3569 * gdbarch.c, gdbarch.h: Regenerated.
3570 * infcall.c (call_function_by_hand): Call
3571 gdbarch_return_in_first_hidden_param_p instead of
3572 language_pass_by_reference.
3573
3574 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3575 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3576 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3577 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3578 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3579 `cplus_return_struct_by_reference'.
3580 (tic6x_return_value): Handle language cplusplus.
3581 (tic6x_return_in_first_hidden_param_p): New.
3582 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3583
3584 2012-06-07 Doug Evans <dje@google.com>
3585
3586 * dwarf2read.c (dwarf2_cu): Add comment.
3587
3588 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3589
3590 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3591 variable.
3592 (mips_eabi_push_dummy_call): Likewise.
3593 (mips_n32n64_push_dummy_call): Likewise.
3594 (mips_o32_push_dummy_call): Likewise.
3595 (mips_o64_push_dummy_call): Likewise.
3596
3597 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3598
3599 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3600
3601 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3602
3603 * mips-tdep.c (mips_pseudo_register_type): Use
3604 mips_float_register_p.
3605
3606 2012-06-06 Pedro Alves <palves@redhat.com>
3607
3608 * infrun.c (handle_inferior_event): Remove calls to
3609 reinit_frame_cache that follow a context_switch call.
3610
3611 2012-06-06 Pedro Alves <palves@redhat.com>
3612
3613 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3614 context_switch and remove stale comment.
3615
3616 2012-06-06 Pedro Alves <palves@redhat.com>
3617
3618 * infrun.c (struct execution_control_state): Remove
3619 `new_thread_event' field.
3620 (handle_inferior_event): Simplify new threads handling; don't
3621 resume the inferior if we find a new thread.
3622
3623 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3624
3625 * NEWS: Document the deprecation of SH's 'regs' command.
3626 * inferior.h (all_registers_info): Add function declaration.
3627 * sh-tdep.c (sh_show_regs): Remove variable.
3628 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3629 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3630 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3631 (sh_show_regs_command): Remove functions.
3632 (sh_gdbarch_init): Don't set sh_show_regs.
3633 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3634 'info all-registers'.
3635 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3636 (sh64_show_regs): Remove functions.
3637 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3638
3639 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3640
3641 * configure.ac: Move development=true below AC_INIT.
3642 * configure: Regenerate.
3643
3644 2012-06-05 Stan Shebs <stan@codesourcery.com>
3645
3646 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3647 gdb_stdout.
3648
3649 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3650
3651 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3652 argument as ssize_t.
3653 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3654 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3655 * target.c (target_read_stack, target_write_memory)
3656 (target_write_raw_memory): Likewise.
3657 * target.h (target_read_stack, target_write_memory)
3658 (target_write_raw_memory): Likewise.
3659
3660 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3661
3662 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3663 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3664 * target.c (target_read_memory): Change LEN to ssize_t.
3665 * target.h (target_read_memory): Change LEN to ssize_t.
3666
3667 2012-06-05 Pedro Alves <palves@redhat.com>
3668
3669 PR backtrace/13866
3670
3671 * breakpoint.c (until_break_command): Only fetch the selected
3672 frame after decode_line_1.
3673
3674 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3675
3676 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3677 event breakpoint at _start, __start or main if a program
3678 interpreter is not found.
3679
3680 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3681
3682 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3683 Add declaration.
3684 * windows-tdep.c: #include "objfiles.h".
3685 (windows_iterate_over_objfiles_in_search_order): New function.
3686 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3687 iterate_over_objfiles_in_search_order gdbarch method to
3688 windows_iterate_over_objfiles_in_search_order.
3689 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3690
3691 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3692
3693 * gdbarch.sh: Add generation of
3694 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3695 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3696 (iterate_over_objfiles_in_search_order): New gdbarch method.
3697 * gdbarch.h, gdbarch.c: Regenerate.
3698 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3699 Add declaration.
3700 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3701 New function.
3702 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3703 out of lookup_symbol_aux_symtabs.
3704 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3705 call to lookup_symbol_aux_objfile.
3706 (struct global_sym_lookup_data): New type.
3707 (lookup_symbol_global_iterator_cb): New function.
3708 (lookup_symbol_global): Search for symbol using
3709 gdbarch_iterate_over_objfiles_in_search_order and
3710 lookup_symbol_global_iterator_cb.
3711 * findvar.c (struct minsym_lookup_data): New type.
3712 (minsym_lookup_iterator_cb): New function.
3713 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3714 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3715 and minsym_lookup_iterator_cb.
3716
3717 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3718
3719 Revert the following patch:
3720 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3721 try locating the symbol in the symbol's own objfile first, before
3722 extending the search to all objfiles.
3723 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3724 out of lookup_symbol_aux_symtabs.
3725 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3726 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3727 Do not search EXCLUDE_OBJFILE.
3728 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3729 (lookup_symbol_global): Search for matches in the block's objfile
3730 first, before searching all other objfiles.
3731
3732 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3733
3734 * breakpoint.c (find_condition_and_thread): Stop parsing
3735 as soon as the first invalid keyword is found.
3736
3737 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3738
3739 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3740
3741 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3742
3743 * config/djgpp/djcheck.sh: Add copyright header.
3744
3745 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3746
3747 * copyright.py (update_files, main): Fix path to update-copyright
3748 script.
3749
3750 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3751
3752 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3753 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3754 for which a reminder to update by hand is printed.
3755
3756 2012-06-04 Doug Evans <dje@google.com>
3757
3758 * buildsym.c (make_blockvector): Add comment.
3759
3760 2012-06-04 Pedro Alves <palves@redhat.com>
3761
3762 * arch-utils.c (default_gdb_signal_from_target): Delete.
3763 * arch-utils.h (default_gdb_signal_from_target): Delete.
3764 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3765 gdbarch_gdb_signal_from_target_p.
3766 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3767 predicate).
3768 * gdbarch.h: Regenerate.
3769 * gdbarch.c: Regenerate.
3770
3771 2012-06-04 Pedro Alves <palves@redhat.com>
3772
3773 * gdbarch.sh (gdb_signal_from_target): Mention that the
3774 implementation of the method must be host independent.
3775 * gdbarch.h: Regenerate.
3776
3777 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3778
3779 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3780 parameters.
3781 (target_read_memory_bfd): New function.
3782 (symbol_file_add_from_memory): Use it.
3783
3784 2012-06-03 Doug Evans <dje@google.com>
3785
3786 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3787 of primary symtab.
3788 (basic_lookup_transparent_type): Ditto.
3789
3790 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3791 (ALL_PRIMARY_SYMTABS): Use it.
3792 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3793 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3794 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3795 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3796 (basic_lookup_transparent_type): Ditto.
3797
3798 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3799
3800 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3801 it to optimize resolution of demangled name.
3802
3803 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3804
3805 * configure.ac (development): Define new variable.
3806 Call AC_CHECK_LIB for mcheck if $development.
3807 (ERROR_ON_WARNING): Enable it by default only if $development.
3808 * config.in: Regenerate.
3809 * configure: Regenerate.
3810
3811 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3812
3813 * target.c (target_read_memory): Make LEN argument as size_t.
3814 * target.h (target_read_memory): Likewise.
3815
3816 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3817
3818 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3819
3820 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3821
3822 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3823 BookE interface for PowerPC server processors if not available
3824 in the Linux Kernel.
3825
3826 2012-05-31 Keith Seitz <keiths@redhat.com>
3827
3828 * linespec.c (decode_objc): Add cleanup to free
3829 INFO.FILE_SYMTABS.
3830 (find_linespec_symbols): Add cleanup to free CLASSES.
3831 * symfile.c (find_separate_debug_file_by_debuglink): Add
3832 cleanup to free DEBUGLINK.
3833 * ui-out.c (clear_header_list): No need to check if
3834 HEADER_NEXT.COLHDR is NULL.
3835 Free HEADER_NEXT.COL_NAME.
3836
3837 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3838
3839 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3840 warning.
3841
3842 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3843
3844 * configure.host (gdb_host_cpu): Handle tilegx*.
3845 (gdb_host): Handle tilegx-*-linux*.
3846 * tilegx-linux-nat.c: New file.
3847 * config/tilegx/linux.mh: New file.
3848
3849 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3850
3851 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3852 tilegx-linux-tdep.o.
3853 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3854 tilegx-linux-tdep.c.
3855 * configure.tgt: Handle tilegx-*-linux*.
3856 * tilegx-tdep.h: New file.
3857 * tilegx-tdep.c: New file.
3858 * tilegx-linux-tdep.c: New file.
3859 * regformats/reg-tilegx.dat: New file.
3860
3861 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3862
3863 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3864 accounting of hw watchpoints on ppc.
3865
3866 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3867
3868 * source.c (openp): Expand tilde in path entries.
3869
3870 2012-05-29 Doug Evans <dje@google.com>
3871
3872 * buildsym.c (block_compar): Fix comment.
3873 (end_symtab): Fix and clarify some comments.
3874
3875 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3876 cleanup_undefined_types.
3877 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3878 All callers updated.
3879
3880 2012-05-29 Tom Tromey <tromey@redhat.com>
3881
3882 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3883 fails.
3884 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3885 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3886 fails.
3887 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3888 fails.
3889
3890 2012-05-29 Tristan Gingold <gingold@adacore.com>
3891
3892 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3893 (struct darwin_info): ... New struct.
3894 (solib_darwin_pspace_data): New variable.
3895 (darwin_pspace_data_cleanup): New function.
3896 (get_darwin_info): Likewise.
3897 (darwin_dyld_version_ok, darwin_load_image_infos)
3898 (darwin_solib_get_all_image_info_addr_at_init)
3899 (darwin_solib_read_all_image_info_addr): Add info argument.
3900 Adjust code.
3901 (darwin_current_sos): Use per pspace structure.
3902 (darwin_solib_create_inferior_hook): Likewise.
3903 (darwin_clear_solib): Likewise.
3904 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3905
3906 2012-05-28 Pedro Alves <palves@redhat.com>
3907
3908 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3909 block that uses them. Clear ecss before handling each event.
3910
3911 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3912
3913 * solib-svr4.c (svr4_current_sos): New comment on
3914 svr4_current_sos_via_xfer_libraries fall back.
3915
3916 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3917
3918 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3919 it as a fallback for TYPE_IS_OPAQUE.
3920 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3921 symbols for lookup_symbol.
3922
3923 2012-05-24 John Steele Scott <toojays@toojays.net>
3924
3925 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3926 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3927 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3928 (check_producer): ... this new function, which also checks for ICC
3929 and caches the result.
3930 (producer_is_icc): New function.
3931 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3932 producer was ICC.
3933
3934 2012-05-24 Pedro Alves <palves@redhat.com>
3935
3936 PR gdb/7205
3937
3938 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3939 (default_gdb_signal_to_target): ... this. Add comment.
3940 (default_gdb_signal_from_host): Rename to ...
3941 (default_gdb_signal_from_target): ... this. Add comment.
3942 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3943 (default_gdb_signal_to_target): ... this.
3944 (default_gdb_signal_from_host): Rename to ...
3945 (default_gdb_signal_from_target): ... this.
3946 * corelow.c (core_open): Adjust to naming change. Replace comment.
3947 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3948 (gdb_signal_from_target): ... this. Adjust to
3949 default_gdb_signal_from_host naming change. Extend comment.
3950 (gdb_signal_to_host): Rename to ...
3951 (gdb_signal_to_target): ... this. Adjust to
3952 default_gdb_signal_to_host naming change.
3953 * gdbarch.h, gdbarch.c: Renegerate.
3954
3955 2012-05-24 Pedro Alves <palves@redhat.com>
3956
3957 PR gdb/7205
3958
3959 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3960
3961 2012-05-24 Pedro Alves <palves@redhat.com>
3962
3963 PR gdb/7205
3964
3965 Replace target_signal with gdb_signal throughout.
3966
3967 2012-05-24 Pedro Alves <palves@redhat.com>
3968
3969 PR tui/14159
3970
3971 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3972 string, instead of reusing the va_list argument.
3973
3974 2012-05-24 Tom Tromey <tromey@redhat.com>
3975
3976 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3977 Remove.
3978
3979 2012-05-23 Doug Evans <dje@google.com>
3980
3981 * symtab.c (search_symbols): Formatting fixes.
3982 (print_symbol_info): Formatting fixes.
3983
3984 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3985 int64_t change to leb128 API.
3986 (read_encoded_value, decode_frame_entry_1): Ditto.
3987 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3988 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3989 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3990 (execute_stack_op): Ditto.
3991 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3992 (safe_read_uleb128, safe_read_sleb128): Ditto.
3993 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3994 (dwarf2_compile_expr_to_ax): Ditto.
3995 (locexpr_describe_location_piece): Ditto.
3996 (disassemble_dwarf_expression): Ditto.
3997 (locexpr_describe_location_1): Ditto.
3998
3999 2012-05-23 Stan Shebs <stan@codesourcery.com>
4000 Kwok Cheung Yeung <kcy@codesourcery.com>
4001
4002 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4003 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4004 (mi-cmd-info.o): New rule.
4005 * osdata.h (info_osdata_command): New declaration.
4006 * osdata.c (info_osdata_command): Change to non-static.
4007 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4008 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4009 * mi/mi-cmd-info.c: New file.
4010
4011 2012-05-23 Doug Evans <dje@google.com>
4012
4013 * symtab.c (search_symbols): Pass NULL for file_matcher to
4014 expand_symtabs_matching if there are no files to match.
4015
4016 * gdbtypes.c (lookup_typename): Simplify.
4017
4018 2012-05-23 Pedro Alves <palves@redhat.com>
4019
4020 * arch-utils.h (default_target_signal_to_host): Delete.
4021 * arch-utils.c (default_target_signal_to_host): Delete.
4022 * gdbarch.sh (target_signal_to_host): Remove.
4023 * gdbarch.h, gdbarch.c: Regenerate.
4024
4025 2012-05-22 Doug Evans <dje@google.com>
4026
4027 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4028 "const gdb_byte *".
4029 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4030 (execute_cfa_program): Update to match API of leb128 functions.
4031 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4032 "const gdb_byte *".
4033 (read_unsigned_leb128, read_signed_leb128): Delete.
4034 (read_initial_length): Change type of buf argument to
4035 "const gdb_byte *".
4036 (read_encoded_value): Update to match API of leb128 functions.
4037 (decode_frame_entry): Change result to "const gdb_byte *", and
4038 similarly for "start" parameter.
4039 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4040 (dwarf2_build_frame_info): Change local frame_ptr to
4041 "const gdb_byte *".
4042 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4043 read_uleb128, read_sleb128. All callers updated.
4044 (safe_skip_leb128): New function.
4045 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4046 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4047 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4048 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4049 read_uleb128, read_sleb128.
4050 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4051 (execute_stack_op): Update to match API of leb128 functions.
4052 * dwarf2expr.h: #include "leb128.h".
4053 (read_uleb128, read_sleb128): Delete.
4054 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4055 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4056 * dwarf2loc.c (debug_loc_kind): New enum.
4057 (decode_debug_loc_addresses): New function.
4058 (decode_debug_loc_dwo_addresses): New function.
4059 (dwarf2_find_location_expression): Rewrite.
4060 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4061 (locexpr_describe_location_piece): Ditto.
4062 (disassemble_dwarf_expression): Ditto.
4063 (locexpr_describe_location_1): Ditto.
4064 (loclist_describe_location): Rewrite.
4065 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4066 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4067 (dwarf2_section_buffer_overflow_complaint): Renamed from
4068 dwarf2_macros_too_long_complaint. All callers updated.
4069 (skip_leb128): Delete.
4070 (init_cu_die_reader): Initialize reader->buffer_end.
4071 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4072 (skip_form_bytes): New arg buffer_end. All callers updated.
4073 Replace call to skip_leb128 with gdb_skip_leb128.
4074 (skip_unknown_opcode): New arg mac_end. All callers updated.
4075 (fill_in_loclist_baton): Initialize baton->from_dwo.
4076
4077 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4078
4079 * mips-linux-nat.c (mips_linux_read_description): Use a more
4080 verbose error message.
4081
4082 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4083
4084 * NEWS: Add MIPS/Linux DSP support.
4085 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4086 (SIGCONTEXT_DSPCTL): New macro.
4087 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4088 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4089 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4090 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4091 (N64_SIGCONTEXT_HI3): Likewise.
4092 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4093 (N64_SIGCONTEXT_LO3): Likewise.
4094 (N64_SIGCONTEXT_DSPCTL): Likewise.
4095 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4096 (mips_linux_o32_sigframe_init): Handle DSP registers.
4097 (mips_linux_n32n64_sigframe_init): Likewise.
4098
4099 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4100
4101 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4102 call to abort.
4103
4104 2012-05-22 Pedro Alves <palves@redhat.com>
4105
4106 * target.h (store_waitstatus): Move declaration ...
4107 * inf-child.h (store_waitstatus): ... here.
4108 * target.c: Move inclusion of gdb_wait.h, and ...
4109 (store_waitstatus): ... this ...
4110 * inf-child.c: ... here.
4111 * linux-nat.c: Include inf-child.h.
4112 * rs6000-nat.c: Include inf-child.h.
4113 * spu-linux-nat.c: Include inf-child.h.
4114
4115 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4116
4117 * tracepoint.c (start_tracing): Add missing i18n markup.
4118 (stop_tracing, set_trace_user): Ditto.
4119 (set_trace_notes, set_trace_stop_notes): Ditto.
4120
4121 2012-05-21 Tom Tromey <tromey@redhat.com>
4122
4123 PR c++/7173:
4124 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4125 types.
4126 * value.h (value_cast_pointers): Update.
4127 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4128 (value_cast): Update.
4129 (update_search_result): New function.
4130 (do_search_struct_field): New, from search_struct_field. Check
4131 for ambiguous results.
4132 (search_struct_field): Rewrite.
4133 * infcall.c (value_arg_coerce): Update.
4134 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4135 value_cast_pointers.
4136 * ada-lang.c (ada_convert_actual): Update.
4137
4138 2012-05-21 Tom Tromey <tromey@redhat.com>
4139
4140 * macroexp.c (macro_stringify): Terminate the string.
4141
4142 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4145 Describe it.
4146 * auto-load.c (auto_load_expand_dir_vars): New function.
4147 (auto_load_safe_path_vec_update): Use it, remove the
4148 substitute_path_component call thanks to it.
4149 (auto_load_objfile_script): Remove the debug_file_directory processing.
4150 Use auto_load_expand_dir_vars, remove the substitute_path_component
4151 call thanks to it.
4152 * configure: Regenerate.
4153 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4154 path. Escape $ also for $debugdir.
4155 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4156 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4157
4158 2012-05-20 Doug Evans <dje@google.com>
4159
4160 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4161 before use. Check for symtab->includes == NULL before scanning it.
4162
4163 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4164
4165 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4166
4167 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4168
4169 * NEWS: Add microMIPS support and "set mips compression",
4170 "show mips compression" commands.
4171 * mips-tdep.h (mips_isa): New enum.
4172 (gdbarch_tdep): Add mips_isa.
4173 (mips_pc_is_mips16): Update prototype.
4174 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4175 * mips-tdep.c (mips_compression_mips16): New variable.
4176 (mips_compression_micromips): Likewise.
4177 (mips_compression_strings): Likewise.
4178 (mips_compression_string): Likewise.
4179 (is_mips16_isa, is_micromips_isa): New functions.
4180 (is_mips16_addr): Rename to...
4181 (is_compact_addr): ... this.
4182 (unmake_mips16_addr): Likewise to...
4183 (unmake_compact_addr): ... this.
4184 (make_mips16_addr): Likewise to...
4185 (make_compact_addr): ... this.
4186 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4187 functions.
4188 (mips_elf_make_msymbol_special): Handle microMIPS code.
4189 (msymbol_is_special): Rename to...
4190 (msymbol_is_mips16): ... this.
4191 (mips_make_symbol_special, mips_pc_is_mips16): Update
4192 accordingly.
4193 (msymbol_is_mips, msymbol_is_micromips): New functions.
4194 (mips16_to_32_reg): Rename to...
4195 (mips_reg3_to_reg): ... this.
4196 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4197 (mips_pc_isa): Likewise.
4198 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4199 code.
4200 (mips_fetch_instruction): Pass return status instead of printing
4201 an error message if requested. Handle microMIPS code. Bail out
4202 on an invalid ISA.
4203 (micromips_op): New macro.
4204 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4205 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4206 (b6s4_op, b7s3_reg): Likewise.
4207 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4208 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4209 (mips_insn_size): New function.
4210 (mips32_next_pc): Update mips_fetch_instruction call.
4211 (micromips_relative_offset7): New function.
4212 (micromips_relative_offset10): Likewise.
4213 (micromips_relative_offset16): Likewise.
4214 (micromips_pc_insn_size): Likewise.
4215 (micromips_bc1_pc): Likewise.
4216 (micromips_next_pc): Likewise.
4217 (unpack_mips16): Update mips_fetch_instruction call.
4218 (extended_mips16_next_pc): Update according to change to
4219 mips16_to_32_reg.
4220 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4221 code.
4222 (mips16_scan_prologue): Update mips_fetch_instruction call.
4223 Update according to change to mips16_to_32_reg.
4224 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4225 (mips_insn16_frame_base_sniffer): Likewise.
4226 (micromips_decode_imm9): New function.
4227 (micromips_scan_prologue): Likewise.
4228 (mips_micro_frame_cache): Likewise.
4229 (mips_micro_frame_this_id): Likewise.
4230 (mips_micro_frame_prev_register): Likewise.
4231 (mips_micro_frame_sniffer): Likewise.
4232 (mips_micro_frame_unwind): New variable.
4233 (mips_micro_frame_base_address): New function.
4234 (mips_micro_frame_base): New variable.
4235 (mips_micro_frame_base_sniffer): New function.
4236 (mips32_scan_prologue): Update mips_fetch_instruction call.
4237 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4238 rather than for MIPS16.
4239 (mips_insn32_frame_base_sniffer): Likewise.
4240 (mips_addr_bits_remove): Handle microMIPS code.
4241 (deal_with_atomic_sequence): Rename to...
4242 (mips_deal_with_atomic_sequence): ... this. Update the type
4243 of the variable used to hold an instruction. Remove the ISA bit
4244 check. Update mips_fetch_instruction call.
4245 (micromips_deal_with_atomic_sequence): New function.
4246 (deal_with_atomic_sequence): Likewise.
4247 (mips_about_to_return): Handle microMIPS code. Update
4248 mips_fetch_instruction call.
4249 (heuristic_proc_start): Check for the standard MIPS ISA rather
4250 than for MIPS16. Update mips_pc_is_mips16 and
4251 mips_fetch_instruction calls. Handle microMIPS code.
4252 (mips_push_dummy_code): Handle microMIPS code.
4253 (mips_eabi_push_dummy_call): Likewise.
4254 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4255 (mips_o64_push_dummy_call): Handle microMIPS code.
4256 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4257 (is_delayed): Remove function.
4258 (mips_single_step_through_delay): Replace the call to is_delayed
4259 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4260 Handle microMIPS code.
4261 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4262 microMIPS code.
4263 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4264 call.
4265 (micromips_in_function_epilogue_p): New function.
4266 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4267 call.
4268 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4269 Handle microMIPS.
4270 (gdb_print_insn_mips): Likewise.
4271 (mips_breakpoint_from_pc): Likewise.
4272 (mips_remote_breakpoint_from_pc): New function.
4273 (mips32_instruction_has_delay_slot): Simplify making use of the
4274 updated mips_fetch_instruction interface.
4275 (micromips_instruction_has_delay_slot): New function.
4276 (mips16_instruction_has_delay_slot): Simplify making use of the
4277 updated mips_fetch_instruction interface.
4278 (mips_adjust_breakpoint_address): Check for the standard MIPS
4279 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4280 calls. Handle microMIPS code.
4281 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4282 (mips_skip_trampoline_code): Handle microMIPS code.
4283 (global_mips_compression): New function.
4284 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4285 file flags. Register the microMIPS remote breakpoint handler
4286 and heuristic frame unwinder.
4287 (show_mips_compression): New function.
4288 (_initialize_mips_tdep): Add the "set mips compression" and
4289 "show mips compression" commands.
4290
4291 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4292
4293 * ada-lang.c:
4294 * ada-tasks.c:
4295 * ada-varobj.c:
4296 * amd64-darwin-tdep.c:
4297 * arm-symbian-tdep.c:
4298 * arm-tdep.c:
4299 * avr-tdep.c:
4300 * ax-gdb.c:
4301 * bfin-linux-tdep.c:
4302 * breakpoint.c:
4303 * c-valprint.c:
4304 * cli/cli-cmds.c:
4305 * coffread.c:
4306 * cp-support.c:
4307 * cris-tdep.c:
4308 * dwarf2-frame-tailcall.c:
4309 * dwarf2-frame.c:
4310 * dwarf2expr.c:
4311 * dwarf2loc.c:
4312 * dwarf2read.c:
4313 * elfread.c:
4314 * eval.c:
4315 * expprint.c:
4316 * f-valprint.c:
4317 * frv-tdep.c:
4318 * h8300-tdep.c:
4319 * hppa-hpux-tdep.c:
4320 * hppa-tdep.c:
4321 * hppanbsd-tdep.c:
4322 * i386-nto-tdep.c:
4323 * i386-tdep.c:
4324 * i387-tdep.c:
4325 * ia64-tdep.c:
4326 * jit.c:
4327 * linespec.c:
4328 * linux-tdep.c:
4329 * lm32-tdep.c:
4330 * m2-valprint.c:
4331 * m32c-tdep.c:
4332 * m32r-rom.c:
4333 * m32r-tdep.c:
4334 * m68k-tdep.c:
4335 * m68klinux-tdep.c:
4336 * mi/mi-main.c:
4337 * microblaze-tdep.c:
4338 * mips-linux-tdep.c:
4339 * mips-tdep.c:
4340 * mn10300-tdep.c:
4341 * p-valprint.c:
4342 * parse.c:
4343 * ppc-linux-tdep.c:
4344 * ppc-sysv-tdep.c:
4345 * printcmd.c:
4346 * python/py-finishbreakpoint.c:
4347 * python/py-inferior.c:
4348 * python/py-infthread.c:
4349 * python/py-type.c:
4350 * python/python.c:
4351 * remote-fileio.c:
4352 * remote-m32r-sdi.c:
4353 * remote-mips.c:
4354 * reverse.c:
4355 * rl78-tdep.c:
4356 * rs6000-aix-tdep.c:
4357 * rs6000-tdep.c:
4358 * s390-tdep.c:
4359 * score-tdep.c:
4360 * sh64-tdep.c:
4361 * skip.c:
4362 * solib-darwin.c:
4363 * solib-dsbt.c:
4364 * solib-frv.c:
4365 * sparc-tdep.c:
4366 * spu-multiarch.c:
4367 * spu-tdep.c:
4368 * stack.c:
4369 * symfile.c:
4370 * symtab.c:
4371 * tic6x-tdep.c:
4372 * tracepoint.c:
4373 * v850-tdep.c:
4374 * valarith.c:
4375 * valprint.c:
4376 * value.c:
4377 * xcoffread.c:
4378 * xtensa-tdep.c:
4379 * ada-lang.c:
4380 * ada-tasks.c:
4381 * ada-varobj.c:
4382 * amd64-darwin-tdep.c:
4383 * arm-symbian-tdep.c:
4384 * arm-tdep.c: Delete unused variables.
4385
4386 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4387
4388 Rename $ddir to $datadir.
4389 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4390 * auto-load.c (auto_load_safe_path_vec_update)
4391 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4392 * configure: Regenerate.
4393 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4394 Likewise. Remove the 'use $ddir' help string.
4395
4396 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4399 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4400
4401 2012-05-18 Tom Tromey <tromey@redhat.com>
4402
4403 PR exp/13907:
4404 * valprint.h (struct value_print_options) <symbol_print>: New
4405 field.
4406 * valprint.c (user_print_options): Add default for symbol_print.
4407 (show_symbol_print): New function.
4408 (generic_val_print): Respect symbol_print.
4409 (_initialize_valprint): Add "print symbol" setting.
4410 * f-valprint.c (f_val_print): Respect symbol_print.
4411 * c-valprint.c (c_val_print): Respect symbol_print.
4412 * NEWS: Update.
4413 * printcmd.c (print_address_symbolic): Return int. Ignore some
4414 zero-size symbols.
4415 (print_address_demangle): Return int.
4416 * defs.h: (print_address_symbolic): Return int.
4417 * value.h (print_address_demangle): Return int.
4418
4419 2012-05-18 Tom Tromey <tromey@redhat.com>
4420
4421 * valprint.c (val_print_string): Don't print leading space.
4422 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4423 print space before string or vtbl.
4424 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4425 before string.
4426 * jv-valprint.c (java_value_print): Print space before string.
4427 * go-valprint.c (print_go_string): Print space before string.
4428 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4429 space before string.
4430 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4431 space before string or vtbl.
4432 * auxv.c (fprint_target_auxv): Print space after address.
4433
4434 2012-05-18 Tom Tromey <tromey@redhat.com>
4435
4436 * printcmd.c (print_address_demangle): Remove special case for 0.
4437
4438 2012-05-18 Tom Tromey <tromey@redhat.com>
4439
4440 * printcmd.c (print_address_demangle): Add 'opts' argument.
4441 * p-valprint.c (pascal_val_print): Update.
4442 * jv-valprint.c (java_val_print): Update.
4443 * value.h: Update.
4444 * valprint.c (generic_val_print): Update.
4445 (print_function_pointer_address): Add 'options' argument. Remove
4446 'addressprint' argument. Update.
4447 * m2-valprint.c (print_unpacked_pointer): Update.
4448 * gnu-v3-abi.c (print_one_vtable): Update.
4449 (gnuv3_print_method_ptr): Update.
4450 * f-valprint.c (f_val_print): Update.
4451 * cp-valprint.c (cp_print_value_fields): Update.
4452 * valprint.h (print_function_pointer_address): Update.
4453 * c-valprint.c (c_val_print): Update.
4454
4455 2012-05-18 Tom Tromey <tromey@redhat.com>
4456
4457 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4458 directly corresponding to the found psymtab.
4459 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4460 (dw2_find_pc_sect_symtab): Use it.
4461 * block.h (blockvector_contains_pc): Declare.
4462 * block.c (find_block_in_blockvector): New function.
4463 (blockvector_for_pc_sect): Use it.
4464 (blockvector_contains_pc): New function.
4465
4466 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4467
4468 * mips-tdep.h (mips_write_pc): New prototype.
4469 * mips-tdep.c (mips_write_pc): Make external, add description.
4470 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4471 add description.
4472
4473 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4474
4475 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4476 mips_regnum->pc.
4477 (mips_unwind_pc, mips_write_pc): Likewise.
4478 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4479 gdbarch_read_pc.
4480
4481 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4482
4483 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4484 proc_warn, proc_error, proc_get_status, proc_flags,
4485 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4486 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4487 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4488 proc_stop_process, proc_wait_for_stop, proc_run_process,
4489 proc_set_traced_signals, proc_set_traced_faults,
4490 proc_set_traced_sysentry, proc_set_traced_sysexit,
4491 proc_set_held_signals, proc_get_held_signals,
4492 proc_get_traced_signals, proc_get_traced_faults,
4493 proc_get_traced_sysentry, proc_get_traced_sysexit,
4494 proc_clear_current_fault, proc_set_current_signal,
4495 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4496 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4497 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4498 proc_get_current_thread, proc_get_current_thread,
4499 proc_get_current_thread, proc_update_threads,
4500 proc_update_threads, proc_update_threads, proc_update_threads,
4501 proc_iterate_over_threads, procfs_find_new_threads,
4502 procfs_pid_to_str): Make static. Remove advance declaration.
4503 (proc_cursig): Make static. Conditionalized defintion on
4504 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4505 (proc_syscall, proc_set_kill_on_last_close,
4506 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4507 proc_get_pending_signals, proc_get_signal_actions,
4508 proc_trace_signal, proc_ignore_signal): Delete.
4509
4510 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4511
4512 * coffread.c (cs_section_address): Passing proper argument for
4513 `bfd_get_section_vma'.
4514 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4515 `bfd_get_section_flags'.
4516 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4517 `bfd_get_section_vma'.
4518
4519 2012-05-16 Tom Tromey <tromey@redhat.com>
4520
4521 PR macros/13205:
4522 * macrotab.h: (macro_define_special): Declare.
4523 (enum macro_special_kind): New.
4524 (struct macro_definition) <argc, replacement>: Update comments.
4525 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4526 (macro_define_object_internal): New function.
4527 (macro_define_object): Use it.
4528 (macro_define_special): New function.
4529 (fixup_definition): New function.
4530 (macro_lookup_definition, foreach_macro_in_scope)
4531 (foreach_macro): Use fixup_definition.
4532 * macroexp.h (macro_stringify): Declare.
4533 * macroexp.c (free_buffer_return_text): New function.
4534 (stringify): Constify "arg".
4535 (macro_stringify): New function.
4536 * dwarf2read.c (macro_start_file): Call macro_define_special.
4537
4538 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4539 Maciej W. Rozycki <macro@mips.com>
4540
4541 * breakpoint.h (bp_location): Add related_address member.
4542 * inferior.h (get_return_value): Take a pointer to struct value
4543 instead of struct type for the function requested.
4544 * value.h (using_struct_return): Likewise.
4545 * gdbarch.sh (return_value): Take a pointer to struct value
4546 instead of struct type for the function requested.
4547 * breakpoint.c (set_breakpoint_location_function): Initialize
4548 related_address for bp_gnu_ifunc_resolver breakpoints.
4549 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4550 requested function's address to gdbarch_return_value.
4551 * eval.c (evaluate_subexp_standard): Pass the requested
4552 function's address to using_struct_return.
4553 * infcall.c (call_function_by_hand): Pass the requested
4554 function's address to using_struct_return and
4555 gdbarch_return_value.
4556 * infcmd.c (get_return_value): Take a pointer to struct value
4557 instead of struct type for the function requested.
4558 (print_return_value): Update accordingly.
4559 (finish_command_continuation): Likewise.
4560 * stack.c (return_command): Pass the requested function's
4561 address to using_struct_return and gdbarch_return_value.
4562 * value.c (using_struct_return): Take a pointer to struct value
4563 instead of struct type for the function requested. Pass the
4564 requested function's address to gdbarch_return_value.
4565 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4566 New function_value member, replacing function_type.
4567 (bpfinishpy_dealloc): Update accordingly.
4568 (bpfinishpy_pre_stop_hook): Likewise.
4569 (bpfinishpy_init): Likewise. Record the requested function's
4570 address.
4571 * mips-tdep.c (mips_fval_reg): New enum.
4572 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4573 words put in GP registers.
4574 (mips_o64_push_dummy_call): Update a comment.
4575 (mips_o32_return_value): Take a pointer to struct value instead
4576 of struct type for the function requested and use it to check if
4577 using the MIPS16 calling convention. Return the designated
4578 general purpose registers for floating-point values returned in
4579 MIPS16 mode.
4580 (mips_o64_return_value): Likewise.
4581 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4582 (ppc_sysv_abi_broken_return_value): Likewise.
4583 (ppc64_sysv_abi_return_value): Likewise.
4584 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4585 value instead of struct type for the function requested.
4586 * amd64-tdep.c (amd64_return_value): Likewise.
4587 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4588 * arm-tdep.c (arm_return_value): Likewise.
4589 * avr-tdep.c (avr_return_value): Likewise.
4590 * bfin-tdep.c (bfin_return_value): Likewise.
4591 * cris-tdep.c (cris_return_value): Likewise.
4592 * frv-tdep.c (frv_return_value): Likewise.
4593 * h8300-tdep.c (h8300_return_value): Likewise.
4594 (h8300h_return_value): Likewise.
4595 * hppa-tdep.c (hppa32_return_value): Likewise.
4596 (hppa64_return_value): Likewise.
4597 * i386-tdep.c (i386_return_value): Likewise.
4598 * ia64-tdep.c (ia64_return_value): Likewise.
4599 * iq2000-tdep.c (iq2000_return_value): Likewise.
4600 * lm32-tdep.c (lm32_return_value): Likewise.
4601 * m32c-tdep.c (m32c_return_value): Likewise.
4602 * m32r-tdep.c (m32r_return_value): Likewise.
4603 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4604 * m68k-tdep.c (m68k_return_value): Likewise.
4605 (m68k_svr4_return_value): Likewise.
4606 * m88k-tdep.c (m88k_return_value): Likewise.
4607 * mep-tdep.c (mep_return_value): Likewise.
4608 * microblaze-tdep.c (microblaze_return_value): Likewise.
4609 * mn10300-tdep.c (mn10300_return_value): Likewise.
4610 * moxie-tdep.c (moxie_return_value): Likewise.
4611 * mt-tdep.c (mt_return_value): Likewise.
4612 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4613 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4614 (ppc_sysv_abi_broken_return_value): Likewise.
4615 (ppc64_sysv_abi_return_value): Likewise.
4616 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4617 * rl78-tdep.c (rl78_return_value): Likewise.
4618 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4619 * rx-tdep.c (rx_return_value): Likewise.
4620 * s390-tdep.c (s390_return_value): Likewise.
4621 * score-tdep.c (score_return_value): Likewise.
4622 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4623 (sh_return_value_fpu): Likewise.
4624 * sh64-tdep.c (sh64_return_value): Likewise.
4625 * sparc-tdep.c (sparc32_return_value): Likewise.
4626 * sparc64-tdep.c (sparc64_return_value): Likewise.
4627 * spu-tdep.c (spu_return_value): Likewise.
4628 * tic6x-tdep.c (tic6x_return_value): Likewise.
4629 * v850-tdep.c (v850_return_value): Likewise.
4630 * vax-tdep.c (vax_return_value): Likewise.
4631 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4632 * xtensa-tdep.c (xtensa_return_value): Likewise.
4633 * gdbarch.c: Regenerate.
4634 * gdbarch.h: Regenerate.
4635
4636 2012-05-15 Tom Tromey <tromey@redhat.com>
4637
4638 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4639
4640 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4641
4642 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4643 of command in two error message.
4644
4645 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4646
4647 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4648
4649 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4650
4651 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4652
4653 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4654
4655 * NEWS (show auto-load scripts-directory): Add forgotten command.
4656
4657 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4658
4659 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4660 parameters.
4661
4662 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4663
4664 * amd64-tdep.c: Include features/i386/x32.c and
4665 features/i386/x32-avx.c.
4666 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4667 initialize_tdesc_x32_avx.
4668
4669 2012-05-14 Stan Shebs <stan@codesourcery.com>
4670
4671 Add dynamic printf.
4672 * breakpoint.h (enum bptype): New type bp_dprintf.
4673 (struct breakpoint): New field extra_string.
4674 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4675 (create_breakpoint): Add extra_string arg.
4676 * breakpoint.c (dprintf_breakpoint_ops): New.
4677 (is_breakpoint): Add bp_dprintf.
4678 (bpstat_what): Add dprintf case.
4679 (bptype_string): Ditto.
4680 (print_one_breakpoint_location): Ditto.
4681 (init_bp_location): Ditto.
4682 (bkpt_print_mention): Ditto.
4683 (dprintf_style_enums): New array.
4684 (dprintf_style): New global.
4685 (dprintf_function): New global.
4686 (dprintf_channel): New global.
4687 (update_dprintf_command_list): New function.
4688 (update_dprintf_commands): New function.
4689 (init_breakpoint_sal): Add extra_string argument, handle it.
4690 (create_breakpoint_sal): Add extra_string argument.
4691 (create_breakpoints_sal): Add extra_string argument, update callers.
4692 (find_condition_and_thread): Add extra argument.
4693 (create_breakpoint): Add extra_string argument, record it.
4694 (dprintf_command): New function.
4695 (break_command_1): Add arg to create_breakpoint call.
4696 (handle_gnu_v3_exceptions): Ditto.
4697 (trace_command): Ditto.
4698 (ftrace_command): Ditto.
4699 (strace_command): Ditto.
4700 (bkpt_print_mention): Add dprintf case.
4701 (create_breakpoint_sal_default): Add extra_string argument.
4702 (_initialize_breakpoint): Add new commands.
4703 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4704 * python/py-breakpoint.c (bppy_init): Ditto.
4705 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4706
4707 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4708
4709 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4710
4711 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4712
4713 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4714 unsigned long long.
4715
4716 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4717
4718 Add a new function gdb.find_pc_line to the Python API.
4719 * NEWS (Python Scripting): Add entry about the new function.
4720 * python/python.c (gdbpy_find_pc_line): New function which
4721 implements gdb.find_pc_line.
4722 (GdbMethods): Add entry for the new function.
4723
4724 2012-05-12 Pedro Alves <palves@redhat.com>
4725
4726 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4727 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4728
4729 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4730
4731 * inferior.c: Include completer.h
4732 (initialize_inferiors): Set completer of add-inferior to
4733 filename_completer.
4734
4735 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4736
4737 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4738 gdbarch_ptr_bit for x32 core dump.
4739
4740 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4741
4742 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4743 and features/i386/x32-avx-linux.c.
4744
4745 2012-05-11 Stan Shebs <stan@codesourcery.com>
4746 Kwok Cheung Yeung <kcy@codesourcery.com>
4747
4748 * NEWS: Describe new info os commands.
4749 * common/linux-osdata.c (PID_T, TIME_T): Define.
4750 (MAX_PID_T_STRLEN): New.
4751 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4752 MAX_PID_T_STRLEN.
4753 (command_from_pid): Add comment. Change to use PID_T.
4754 (commandline_from_pid): Change to use PID_T.
4755 (user_from_pid): Add comment.
4756 (get_process_owner): Add comment. Change to use PID_T and
4757 MAX_PID_T_STRLEN.
4758 (get_number_of_cpu_cores): Add comment.
4759 (get_cores_used_by_process): Add comment. Change to use PID_T and
4760 MAX_PID_T_STRLEN.
4761 (linux_xfer_osdata_processes): Change to use PID_T and
4762 MAX_PID_T_STRLEN.
4763 (compare_processes): New function.
4764 (linux_xfer_osdata_processgroups): New function.
4765 (linux_xfer_osdata_threads): Change to use PID_T.
4766 (linux_xfer_osdata_fds): New function.
4767 (format_socket_state, print_sockets): New functions.
4768 (union socket_addr): New union.
4769 (linux_xfer_osdata_isockets): New function.
4770 (time_from_time_t, group_from_gid): New functions.
4771 (linux_xfer_osdata_shm): New function.
4772 (linux_xfer_osdata_sem): New function.
4773 (linux_xfer_osdata_msg): New function.
4774 (linux_xfer_osdata_modules): New function.
4775 (osdata_table): Add new entries.
4776 * common/buffer.c (buffer_xml_printf): Add support for long and
4777 long long format specifiers.
4778
4779 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4780
4781 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4782 (tdesc_x32_avx_linux): Likewise.
4783
4784 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4785
4786 Implement multi-component --with-auto-load-dir.
4787 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4788 entries.
4789 (--with-auto-load-safe-path): Update the default value description.
4790 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4791 New.
4792 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4793 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4794 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4795 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4796 "set auto-load scripts-directory".
4797 * config.in: Regenerate.
4798 * configure: Regenerate.
4799 * configure.ac (--with-auto-load-dir): New configure option.
4800 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4801
4802 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4803
4804 Provide $ddir substitution for --with-auto-load-safe-path.
4805 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4806 entries.
4807 * auto-load.c: Include observer.h.
4808 (auto_load_safe_path_vec_update): Call substitute_path_component for
4809 each component. New variable ddir_subst.
4810 (auto_load_gdb_datadir_changed): New function.
4811 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4812 AUTO_LOAD_SAFE_PATH. New comment.
4813 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4814 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4815 * config.in: Regenerate.
4816 * configure: Regenerate.
4817 * configure.ac (--auto-load-safe-path): Rename
4818 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4819 GDB_DATADIR/auto-load.
4820 * defs.h (substitute_path_component): New declaration.
4821 * top.c: Include observer.h.
4822 (set_gdb_datadir): New function.
4823 (init_main): Install it for "set data-directory".
4824 * utils.c (substitute_path_component): New function.
4825
4826 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
4828 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4829 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4830 DEBUG_FILE_DIRECTORY. Handle multiple components of
4831 DEBUG_FILE_DIRECTORY.
4832
4833 2012-05-10 Tom Tromey <tromey@redhat.com>
4834
4835 * dwarf2read.c (recursively_write_psymbols): New function.
4836 (write_psymtabs_to_index): Use it.
4837
4838 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4839 field.
4840 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4841 (load_partial_comp_unit): Update.
4842 (queue_comp_unit): Add argument 'pretend_language'.
4843 (process_queue): Update.
4844 (psymtab_to_symtab_1): Skip dependencies that have a user.
4845 (load_partial_comp_unit_reader): Give meaning to the 'data'
4846 argument.
4847 (load_full_comp_unit): Add 'pretend_language' argument.
4848 (process_full_comp_unit): Add 'pretend_language' argument. Set
4849 language on CU.
4850 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4851 Update.
4852 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4853 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4854 Update.
4855 (prepare_one_comp_unit): Add 'pretend_language' argument.
4856
4857 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4858 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4859 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4860 (dw2_do_instantiate_symtab): Check whether symtab was read in
4861 before queueing.
4862 (dw2_instantiate_symtab): Add assertion. Call
4863 process_cu_includes.
4864 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4865 (partial_symtab_p): New typedef.
4866 (set_partial_user): New function.
4867 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4868 (scan_partial_symbols): Add imported CU to imported_symtabs.
4869 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4870 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4871 (get_symtab, recursively_compute_inclusions)
4872 (compute_symtab_includes, process_cu_includes)
4873 (process_imported_unit_die): New functions.
4874 (process_die) <DW_TAG_imported_unit>: New case.
4875 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4876
4877 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4878 comment.
4879 (struct partial_die_info) <locdesc>: Remove.
4880 <d>: New field.
4881 (process_psymtab_comp_unit): Add 'read_partial' argument.
4882 Update.
4883 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4884 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4885 (add_partial_symbol): Update.
4886 (process_die): Handle DW_TAG_partial_unit.
4887 (read_file_scope): Update comment.
4888 (load_partial_dies): Handle DW_TAG_imported_unit.
4889 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4890 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4891
4892 2012-05-10 Tom Tromey <tromey@redhat.com>
4893
4894 * cc-with-dwz.sh: New file.
4895
4896 2012-05-10 Tom Tromey <tromey@redhat.com>
4897
4898 * symtab.h (struct symtab) <includes, user>: New fields.
4899 * block.h (struct block_iterator) <d, idx, which>: New fields.
4900 * block.c (initialize_block_iterator, find_iterator_symtab)
4901 (block_iterator_step, block_iter_name_step)
4902 (block_iter_match_step): New functions.
4903 (block_iterator_first, block_iterator_next)
4904 (block_iter_name_first, block_iter_name_next)
4905 (block_iter_match_first, block_iter_match_next): Rewrite.
4906 (get_block_symtab): New function.
4907
4908 2012-05-10 Tom Tromey <tromey@redhat.com>
4909
4910 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4911 set_block_symtab.
4912 * jit.c (finalize_symtab): Use allocate_global_block,
4913 set_block_symtab.
4914 * buildsym.c (finish_block_internal): New function, from old
4915 finish_block.
4916 (finish_block): Rewrite.
4917 (end_symtab): Use finish_block_internal, set_block_symtab.
4918 * block.h (struct global_block): New.
4919 (allocate_global_block, set_block_symtab): Declare.
4920 * block.c (allocate_global_block, set_block_symtab): New
4921 functions.
4922
4923 2012-05-10 Tom Tromey <tromey@redhat.com>
4924
4925 * psymtab.c (partial_map_expand_apply): Add assertion.
4926 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4927 (psymtab_to_symtab): Find unshared psymtab.
4928 (dump_psymtab): Print including psymtabs.
4929 (recursively_search_psymtabs): New function.
4930 (expand_symtabs_matching_via_partial): Use it.
4931 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4932 fields.
4933 (enum psymtab_search_status): New.
4934
4935 2012-05-10 Tom Tromey <tromey@redhat.com>
4936
4937 * tracepoint.c (scope_info): Update.
4938 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4939 (find_pc_sect_symtab, search_symbols)
4940 (default_make_symbol_completion_list_break_on)
4941 (make_file_symbol_completion_list): Update.
4942 * symmisc.c (dump_symtab_1): Update.
4943 * stack.c (print_frame_args, iterate_over_block_locals)
4944 (print_frame_labels, iterate_over_block_arg_vars): Update.
4945 * python/py-block.c (block_object) <dict>: Remove.
4946 <block>: New field.
4947 <iter>: Change type.
4948 (blpy_iter): Update.
4949 (blpy_block_syms_iternext): Update.
4950 * psymtab.c (map_block): Use block iterators.
4951 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4952 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4953 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4954 * infrun.c (check_exception_resume): Update.
4955 * cp-support.c (make_symbol_overload_list_block): Update.
4956 * coffread.c (patch_opaque_types): Update.
4957 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4958 * block.h (struct block_iterator): New.
4959 (block_iterator_first, block_iterator_next, block_iter_name_first)
4960 (block_iter_name_next, block_iter_match_first)
4961 (block_iter_match_next): Declare.
4962 (ALL_BLOCK_SYMBOLS): Redefine.
4963 * block.c (block_iterator_first, block_iterator_next)
4964 (block_iter_name_first, block_iter_name_next)
4965 (block_iter_match_first, block_iter_match_next): New functions.
4966 * ada-lang.c (ada_add_block_symbols)
4967 (ada_make_symbol_completion_list): Use block iterator.
4968
4969 2012-05-10 Tom Tromey <tromey@redhat.com>
4970
4971 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4972 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4973 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4974 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4975 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4976 Update.
4977
4978 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4979
4980 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4981 print-file-var-lib2.c, print-file-var-main.c and
4982 print-file-var.exp (located in gdb/testsuite/gdb.base).
4983
4984 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4985
4986 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4987 try locating the symbol in the symbol's own objfile first, before
4988 extending the search to all objfiles.
4989 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4990 out of lookup_symbol_aux_symtabs.
4991 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4992 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4993 Do not search EXCLUDE_OBJFILE.
4994 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4995 (lookup_symbol_global): Search for matches in the block's objfile
4996 first, before searching all other objfiles.
4997
4998 2012-05-10 Tristan Gingold <gingold@adacore.com>
4999
5000 * printcmd.c (set_command): Add pre/post inc/dec.
5001
5002 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5003
5004 * gdb.1: Document -ex option.
5005
5006 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5007
5008 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5009 * inferior.h (AT_SYMBOL): Delete.
5010
5011 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5012
5013 * mips-tdep.c (mips_push_dummy_code): New function.
5014 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5015 ON_STACK and install mips_push_dummy_code as our gdbarch
5016 push_dummy_code routine.
5017
5018 2012-05-09 Pedro Alves <palves@redhat.com>
5019
5020 * target.c (set_maintenance_target_async_permitted): Rename to ...
5021 (set_target_async_command): ... this.
5022 (show_maintenance_target_async_permitted): Rename to ...
5023 (show_target_async_command): ... this.
5024 (initialize_targets): Adjust.
5025
5026 2012-05-08 Doug Evans <dje@google.com>
5027
5028 * go-exp.y (classify_name): Add missing assignment of fields of
5029 yylval.ssym.
5030
5031 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5032
5033 Display the ">" prompt in interactive mode while reading canned
5034 commands, even when the current interpreter is MI.
5035
5036 * interps.c (interp_set_temp): New function.
5037
5038 * interps.h (interp_set_temp): Add prototype.
5039
5040 * cli/cli-script.c (restore_interp): New cleanup function.
5041 (read_command_lines): Temporarily override the current interpreter
5042 with CLI and arrange for restoring the original one.
5043
5044 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5045
5046 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5047
5048 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5049
5050 * probe.c (parse_probes): Move conditional to check for
5051 debuginfo files from here...
5052 * stap-probe.c (stap_get_probes): ... to here.
5053
5054 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5055 H.J. Lu <hongjiu.lu@intel.com>
5056
5057 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5058 `movl %esp, %ebp' for the X32 ABI.
5059
5060 2012-05-07 Tom Tromey <tromey@redhat.com>
5061
5062 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5063 get_DW_TAG_name.
5064 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5065 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5066 (dwarf_stack_op_name): Remove.
5067 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5068 (decode_locdesc): Use get_DW_OP_name.
5069 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5070 (dwarf2_compile_expr_to_ax): Likewise.
5071 (disassemble_dwarf_expression): Likewise.
5072 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5073
5074 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5075
5076 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5077 (sh_linux_sigtramp_cache): New function.
5078 (sh_linux_sigreturn_init): New function.
5079 (sh_linux_rt_sigreturn_init): New function.
5080 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5081 patterns.
5082 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5083 syscall codes.
5084 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5085 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5086 (sh_linux_init_abi): Add init calls to register new tramp_frame
5087 definitions under 32-bit SH, update comments.
5088
5089 2012-05-07 Pedro Alves <palves@redhat.com>
5090
5091 PR gdb/10952
5092
5093 * amd64-linux-tdep.c: Include glibc-tdep.h.
5094 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5095 gdbarch_skip_solib_resolver callback.
5096
5097 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5098
5099 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5100 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5101 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5102 (add_auto_load_safe_path): Change the error message.
5103 (_initialize_auto_load): Change the "safe-path" help text.
5104 * configure: Regenerate
5105 * configure.ac (--without-auto-load-safe-path): Set
5106 WITH_AUTO_LOAD_SAFE_PATH to /.
5107
5108 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5109
5110 * stap-probe.h: Do not include unecessary `probe.h'.
5111
5112 2012-05-05 Alan Modra <amodra@gmail.com>
5113
5114 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5115 bfd_und_section_ptr.
5116 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5117 and bfd_com_section_ptr.
5118
5119 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5120
5121 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5122
5123 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5124
5125 * windows-nat.h (segment_register_p_ftype): New typedef.
5126 (windows_set_segment_register_p): Add declaration.
5127 * windows-nat.c (segment_register_p): New static global.
5128 (windows_set_segment_register_p): New function.
5129 (do_windows_fetch_inferior_registers): Add special handling
5130 for segment registers.
5131 * amd64-windows-nat.c: #include "amd64-tdep.h".
5132 (amd64_windows_segment_register_p): New function.
5133 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5134 * i386-windows-nat.c: #include "i386-tdep.h".
5135 (i386_windows_segment_register_p): New function.
5136 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5137
5138 2012-05-04 Tristan Gingold <gingold@adacore.com>
5139
5140 * printcmd.c (set_command): Emit a warning if the expression is not
5141 an assignment.
5142
5143 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5144
5145 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5146 Make static.
5147
5148 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5149
5150 * stap-probe.c (stap_is_operator): Change declaration.
5151 (stap_get_opcode): Change return value.
5152 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5153 `stap_parse_argument_1'.
5154
5155 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5156
5157 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5158 debug log.
5159
5160 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5161
5162 Add two new methods global_block and static_block to gdb.Symtab
5163 objects.
5164 * NEWS (Python scripting): Add entry about the new methods.
5165 * python/py-symtab.c (stpy_global_block): New function which
5166 implements the gdb.Symtab.global_block() method.
5167 (stpy_static_block): New function which implements the
5168 gdb.Symtab.static_block() method.
5169 (symtab_object_methods): Add entries for the two new methods.
5170
5171 2012-05-03 Doug Evans <dje@google.com>
5172
5173 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5174 files.
5175
5176 2012-05-03 Yao Qi <yao@codesourcery.com>
5177
5178 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5179 space.
5180 (i386_process_record): Ditto.
5181
5182 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5183
5184 * infcall.c (unwind_on_signal_p): Make static.
5185
5186 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5187
5188 * sol-thread.c (solaris_pid_to_str): Make static.
5189 (_initialize_sol_thread): Add prototype.
5190
5191 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5192
5193 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5194
5195 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5196
5197 * MAINTAINERS: Remove myself.
5198
5199 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5200
5201 Fix --without-auto-load-safe-path for MS-Windows host platform.
5202 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5203
5204 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5205
5206 * gdb_curses.h: Undefine KEY_EVENT before including curses
5207 headers. Move "#undef MOUSE_MOVED" before any curses header
5208 inclusion.
5209
5210 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5211
5212 * features/i386/i386-mmx-linux.c: Regenerate.
5213 * features/rs6000/powerpc-32.c: Likewise.
5214 * features/rs6000/powerpc-32l.c: Likewise.
5215 * features/rs6000/powerpc-403.c: Likewise.
5216 * features/rs6000/powerpc-403gc.c: Likewise.
5217 * features/rs6000/powerpc-405.c: Likewise.
5218 * features/rs6000/powerpc-505.c: Likewise.
5219 * features/rs6000/powerpc-601.c: Likewise.
5220 * features/rs6000/powerpc-602.c: Likewise.
5221 * features/rs6000/powerpc-603.c: Likewise.
5222 * features/rs6000/powerpc-604.c: Likewise.
5223 * features/rs6000/powerpc-64.c: Likewise.
5224 * features/rs6000/powerpc-64l.c: Likewise.
5225 * features/rs6000/powerpc-750.c: Likewise.
5226 * features/rs6000/powerpc-860.c: Likewise.
5227 * features/rs6000/powerpc-e500.c: Likewise.
5228 * features/rs6000/powerpc-e500l.c: Likewise.
5229 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5230 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5231 * features/rs6000/rs6000.c: Likewise.
5232
5233 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5234
5235 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5236 variable.
5237 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5238 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5239 (stap_parse_argument) <e>: Likewise.
5240 (handle_stap_probe) <byte_order>: Likewise.
5241
5242 2012-04-30 Doug Evans <dje@google.com>
5243
5244 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5245 init_and_read_dies_worker. All callers updated.
5246 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5247 replaced with init_cutu_and_read_dies.
5248 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5249 (find_partial_die): Remove FIXME. Don't free current CU.
5250
5251 2012-04-30 Sterling Augustine <saugustine@google.com>
5252
5253 * contrib: New directory.
5254 * contrib/test_pubnames_and_indexes.py: New file.
5255
5256 2012-04-30 Doug Evans <dje@google.com>
5257
5258 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5259 All callers updated.
5260 (init_cu_die_reader): Verify the section is non-empty.
5261 (dwarf_decode_line_header): Don't dereference section->asection
5262 until we know the section is present.
5263
5264 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5265
5266 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5267 probes.
5268
5269 2012-04-29 Yao Qi <yao@codesourcery.com>
5270
5271 * gdb-code-style.el: New hook gdb-markup-hook
5272 and gdb-comment-hook.
5273
5274 2012-04-28 Doug Evans <dje@google.com>
5275
5276 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5277 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5278 objfile->obfd.
5279 * symfile.h (dwarf2_debug_sections): New member addr.
5280 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5281 (ctx_no_get_addr_index): New function.
5282 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5283 (ctx_no_get_addr_index): Declare.
5284 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5285 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5286 (dwarf_expr_ctx_funcs): Update.
5287 (needs_get_addr_index): New function.
5288 (needs_frame_ctx_funcs): Update.
5289 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5290 * dwarf2read.c: #include "gdbcore.h".
5291 (dwarf2_per_objfile): New members addr, dwo_files.
5292 (dwarf2_elf_names): Add entry for addr.
5293 (struct dwo_section_names): New type.
5294 (dwo_section_names): New static global.
5295 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5296 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5297 old debug_types_section member updated to use this.
5298 Rename member debug_types_section to info_or_types_section,
5299 all uses updated.
5300 (signatured_type): Rename member type_offset to type_offset_in_tu,
5301 all uses updated. New member type_offset_in_section.
5302 (struct dwo_sections): New type.
5303 (struct dwo_unit): New type.
5304 (struct dwo_file): New type.
5305 (die_reader_specs): New member dwo_file.
5306 (dwarf2_locate_sections): Watch for .debug_addr.
5307 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5308 (dwarf2_read_section): Get bfd of section from bfd's asection,
5309 instead of objfile.
5310 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5311 (create_signatured_type_table_from_index): Initialize
5312 sig_type->info_or_types_section.
5313 (dw2_get_file_names): Statement lists for type units with DWO files
5314 live in the DWO file.
5315 (create_debug_types_hash_table): New function.
5316 (create_all_type_units): Rewrite.
5317 (init_cu_die_reader): New arg dwo_file, all callers updated.
5318 (init_and_read_dies_worker): Get section from
5319 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5320 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5321 continue reading the CU/TU from there.
5322 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5323 updated. Get section from this_cu->info_or_types_section.
5324 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5325 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5326 DW_FORM_GNU_str_index.
5327 (hash_dwo_file, eq_dwo_file): New functions.
5328 (allocate_dwo_file_hash_table): New function.
5329 (hash_dwo_unit, eq_dwo_unit): New functions.
5330 (allocate_dwo_unit_table): New function.
5331 (dwarf2_locate_dwo_sections): New function.
5332 (struct create_dwo_info_table_data): New type.
5333 (create_debug_info_hash_table_reader): New function.
5334 (create_debug_info_hash_table): New function.
5335 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5336 (lookup_dwo_file): New function.
5337 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5338 (free_dwo_file, free_dwo_file_cleanup): New functions.
5339 (free_dwo_file_from_slot, free_dwo_files): New functions.
5340 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5341 (dwarf2_record_block_ranges): Ditto.
5342 (read_partial_die): Ditto.
5343 (process_enumeration_scope): Update to use type_offset_in_section.
5344 (read_full_die_1): New function.
5345 (read_full_die): Rewrite.
5346 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5347 DW_FORM_GNU_str_index.
5348 (read_addr_index_1, read_addr_index): New functions.
5349 (read_addr_index_from_leb128): New function.
5350 (struct dwarf2_read_addr_index_data): New type.
5351 (dwarf2_read_addr_index_reader): New function.
5352 (dwarf2_read_addr_index): New function.
5353 (read_str_index): New function.
5354 (leb128_size): New function.
5355 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5356 If processing a type unit from a DWO file, get the line section
5357 from the DWO file.
5358 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5359 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5360 DW_FORM_GNU_str_index.
5361 (lookup_die_type): Check whether section offset of type's die is
5362 known before looking it up. Remove assert. Condition can
5363 legimately happen for inter-cu type references.
5364 (dwarf_attr_name): Handle Fission attributes.
5365 (dwarf_form_name): Handle Fission forms.
5366 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5367 DW_FORM_GNU_str_index.
5368 (follow_die_sig): Update to use type_offset_in_section.
5369 (decode_locdesc): New case DW_OP_GNU_addr_index.
5370 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5371 DW_FORM_GNU_str_index.
5372 (cu_debug_loc_section): New function.
5373 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5374 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5375 Free DWO files if present.
5376 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5377
5378 Refactor DIE reading.
5379 * dwarf2read.c (dwarf2_per_objfile): Replace members
5380 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5381 (die_reader_specs): New member "die_section". Temporarily make
5382 member "buffer" non-const, pending constifying all info_ptr uses.
5383 (die_reader_func_ftype): New typedef.
5384 (dw2_get_file_names_reader): New function.
5385 (dw2_get_file_names): Rewrite.
5386 (read_and_check_type_unit_head): Rename arg type_offset to
5387 type_offset_in_tu.
5388 (create_all_type_units): Improve debugging message.
5389 Improve dummy type unit check.
5390 (init_cu_die_reader): New arg "section". All callers updated.
5391 (init_and_read_dies_worker): New function.
5392 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5393 (init_cutu_and_read_dies_no_follow): New function.
5394 (init_cutu_and_read_dies_simple): New function.
5395 (process_psymtab_comp_unit_reader): New function.
5396 (process_psymtab_comp_unit): Delete args section,
5397 is_debug_types_section. Rewrite. All callers updated.
5398 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5399 All callers updated. Rewrite.
5400 (load_partial_comp_unit_reader): New function.
5401 (load_partial_comp_unit): Rewrite.
5402 (skip_children): New arg reader. Delete args buffer, cu.
5403 All callers updated.
5404 (skip_one_die): New arg reader. Delete args buffer, cu.
5405 All callers updated.
5406 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5407 All callers updated.
5408 (load_full_comp_unit_reader): New function.
5409 (load_full_comp_unit): Rewrite.
5410 (read_comp_unit): Delete.
5411 (read_die_and_children_1): Delete, contents moved ...
5412 (read_die_and_children): ... here.
5413 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5414 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5415 All callers updated.
5416 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5417 All callers updated.
5418 (find_partial_die): Rewrite load_all_dies support.
5419 (read_attribute_value): New arg reader. Delete args abfd, cu.
5420 All callers updated.
5421 (read_attribute): New arg reader. Delete args abfd, cu.
5422 All callers updated.
5423 (load_full_type_unit): Add assert.
5424 (read_signatured_type_reader): New function.
5425 (read_signatured_type): Rewrite.
5426 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5427 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5428 All callers updated. Set per_cu->cu = NULL after freeing it.
5429 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5430 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5431 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5432 (set_die_type): Update.
5433 (get_die_type_at_offset): Update.
5434 (read_file_scope): Call prepare_one_comp_unit.
5435 (read_type_unit_scope): Ditto.
5436 (prepare_one_comp_unit): Set producer if present.
5437
5438 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5439
5440 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5441 gettext function on `error'.
5442
5443 2012-04-27 Doug Evans <dje@google.com>
5444
5445 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5446 is empty.
5447
5448 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5449 Tom Tromey <tromey@redhat.com>
5450
5451 * breakpoint.c (struct breakpoint_objfile_data)
5452 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5453 <exception_probes>: New fields.
5454 (free_breakpoint_probes): New function.
5455 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5456 `_Unwind_DebugHook'.
5457 (create_exception_master_breakpoint): Likewise.
5458 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5459 * infrun.c: Including necessary header files for handling SystemTap
5460 probes.
5461 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5462 via SystemTap probes.
5463 (check_exception_resume): Remove `func' argument. Handle exception
5464 unwinding breakpoint set via a SystemTap probe.
5465 (insert_exception_resume_from_probe): New function.
5466
5467 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5468 Tom Tromey <tromey@redhat.com>
5469 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5472 (COMMON_OBS): Likewise.
5473 (HFILES_NO_SRCDIR): Add `probe'.
5474 * NEWS: Mention support for static and SystemTap probes.
5475 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5476 SystemTap probes' arguments parser.
5477 * arm-linux-tdep.c: Including headers needed to perform the parsing
5478 of SystemTap probes' arguments.
5479 (arm_stap_is_single_operand): New function.
5480 (arm_stap_parse_special_token): Likewise.
5481 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5482 probes' arguments parser.
5483 * ax-gdb.c (require_rvalue): Removing static declaration.
5484 (gen_expr): Likewise.
5485 * ax-gdb.h (gen_expr): Declaring function.
5486 (require_rvalue): Likewise.
5487 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5488 (bkpt_probe_breakpoint_ops): New variable.
5489 (momentary_breakpoint_from_master): Set the `probe' value.
5490 (add_location_to_breakpoint): Likewise.
5491 (break_command_1): Using proper breakpoint_ops according to the
5492 argument passed by the user in the command line.
5493 (bkpt_probe_insert_location): New function.
5494 (bkpt_probe_remove_location): Likewise.
5495 (bkpt_probe_create_sals_from_address): Likewise.
5496 (bkpt_probe_decode_linespec): Likewise.
5497 (tracepoint_probe_create_sals_from_address): Likewise.
5498 (tracepoint_probe_decode_linespec): Likewise.
5499 (tracepoint_probe_breakpoint_ops): New variable.
5500 (trace_command): Using proper breakpoint_ops according to the
5501 argument passed by the user in the command line.
5502 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5503 static probes on breakpoints and tracepoints.
5504 * breakpoint.h (struct bp_location) <probe>: New field.
5505 * cli-utils.c (skip_spaces_const): New function.
5506 (extract_arg): Likewise.
5507 * cli-utils.h (skip_spaces_const): Likewise.
5508 (extract_arg): Likewise.
5509 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5510 * configure.ac: Append `stap-probe.o' to be generated when ELF
5511 support is present.
5512 * configure: Regenerate.
5513 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5514 * elfread.c: Include `probe.h' and `arch-utils.h'.
5515 (probe_key): New variable.
5516 (elf_get_probes): New function.
5517 (elf_get_probe_argument_count): Likewise.
5518 (elf_evaluate_probe_argument): Likewise.
5519 (elf_compile_to_ax): Likewise.
5520 (elf_symfile_relocate_probe): Likewise.
5521 (stap_probe_key_free): Likewise.
5522 (elf_probe_fns): New variable.
5523 (elf_sym_fns): Add `sym_probe_fns' value.
5524 (elf_sym_fns_lazy_psyms): Likewise.
5525 (elf_sym_fns_gdb_index): Likewise.
5526 (_initialize_elfread): Initialize objfile cache for static
5527 probes.
5528 * gdb_vecs.h (struct probe): New forward declaration.
5529 (probe_p): New VEC declaration.
5530 * gdbarch.c: Regenerate.
5531 * gdbarch.h: Regenerate.
5532 * gdbarch.sh (stap_integer_prefix): New variable.
5533 (stap_integer_suffix): Likewise.
5534 (stap_register_prefix): Likewise.
5535 (stap_register_suffix): Likewise.
5536 (stap_register_indirection_prefix): Likewise.
5537 (stap_register_indirection_suffix): Likewise.
5538 (stap_gdb_register_prefix): Likewise.
5539 (stap_gdb_register_suffix): Likewise.
5540 (stap_is_single_operand): New function.
5541 (stap_parse_special_token): Likewise.
5542 (struct stap_parse_info): Forward declaration.
5543 * i386-tdep.c: Including headers needed to perform the parsing
5544 of SystemTap probes' arguments.
5545 (i386_stap_is_single_operand): New function.
5546 (i386_stap_parse_special_token): Likewise.
5547 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5548 probes' arguments parser.
5549 * i386-tdep.h (i386_stap_is_single_operand): New function.
5550 (i386_stap_parse_special_token): Likewise.
5551 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5552 * mipsread.c (ecoff_sym_fns): Likewise.
5553 * objfiles.c (objfile_relocate1): Support relocation for static
5554 probes.
5555 * parse.c (prefixify_expression): Remove static declaration.
5556 (initialize_expout): Likewise.
5557 (reallocate_expout): Likewise.
5558 * parser-defs.h (initialize_expout): Declare function.
5559 (reallocate_expout): Likewise.
5560 (prefixify_expression): Likewise.
5561 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5562 of SystemTap probes' arguments.
5563 (ppc_stap_is_single_operand): New function.
5564 (ppc_stap_parse_special_token): Likewise.
5565 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5566 probes' arguments parser.
5567 * probe.c: New file, for generic statically defined probe support.
5568 * probe.h: Likewise.
5569 * s390-tdep.c: Including headers needed to perform the parsing of
5570 SystemTap probes' arguments.
5571 (s390_stap_is_single_operand): New function.
5572 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5573 probes' arguments parser.
5574 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5575 * stap-probe.c: New file, for SystemTap probe support.
5576 * stap-probe.h: Likewise.
5577 * symfile.h: Include `gdb_vecs.h'.
5578 (struct sym_probe_fns): New struct.
5579 (struct sym_fns) <sym_probe_fns>: New field.
5580 * symtab.c (init_sal): Initialize `probe' field.
5581 * symtab.h (struct probe): Forward declaration.
5582 (struct symtab_and_line) <probe>: New field.
5583 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5584 locations.
5585 (stop_tracing): Likewise.
5586 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5587
5588 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5589 Tom Tromey <tromey@redhat.com>
5590
5591 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5592 and to compile agent expressions.
5593 * infrun.c (siginfo_make_value): New argument `ignore'.
5594 (siginfo_funcs): New struct.
5595 (_initialize_infrun): New argument when calling
5596 `create_internalvar_type_lazy'.
5597 * thread.c (thread_id_make_value): New argument `ignore'.
5598 (thread_funcs): New struct.
5599 (_initialize_thread): New argument when calling
5600 `create_internalvar_type_lazy'.
5601 * tracepoint.c (sdata_make_value): New argument `ignore'.
5602 (sdata_funcs): New struct.
5603 (_initialize_tracepoint): New argument when calling
5604 `create_internalvar_type_lazy'.
5605 * value.c (make_value): New struct.
5606 (create_internalvar_type_lazy): New argument `data'.
5607 (compile_internalvar_to_ax): New function.
5608 (value_of_internalvar): Properly handling `make_value' case.
5609 (clear_internalvar): Likewise.
5610 (show_convenience): Adding `TRY_CATCH' block.
5611 * value.h (internalvar_make_value): Delete, replace by...
5612 (struct internalvar_funcs): ... this.
5613 (create_internalvar_type_lazy) <fun>: Delete argument.
5614 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5615 (compile_internalvar_to_ax): New function.
5616 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5617 (tlb_funcs): New struct.
5618 (_initialize_windows_tdep): New argument when calling
5619 `create_internalvar_type_lazy'.
5620
5621 2012-04-27 Mark Wielaard <mjw@redhat.com>
5622
5623 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5624 see whether it is an address or a constant offset from DW_AT_low_pc.
5625 (dwarf2_record_block_ranges): Likewise.
5626 (read_partial_die): Likewise.
5627
5628 2012-04-26 Mark Wielaard <mjw@redhat.com>
5629
5630 * MAINTAINERS (Write After Approval): Add myself to the list.
5631
5632 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5633
5634 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5635 (proc_prettyprint_signal): Likewise.
5636 (proc_prettyprint_faultset): Likewise.
5637 (proc_prettyprint_fault): Likewise.
5638 (proc_prettyprint_actionset): Likewise.
5639 (proc_prettyprint_flags): Move to new proc-flags.c section.
5640 (proc_prettyfprint_flags): New prototype.
5641 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5642 (proc_syscall, proc_cursig): Likewise.
5643 (proc_set_kill_on_last_close): Likewise.
5644 (proc_unset_kill_on_last_close): Likewise.
5645 (proc_set_watchpoint): Make static.
5646 (proc_delete_dead_threads): Likewise.
5647 (procfs_set_watchpoint): Likewise.
5648 (_initialize_procfs): Add prototype.
5649 * proc-events.c: Include proc-utils.h.
5650 (init_syscall_table): Make static.
5651 * proc-api.c (_initialize_proc_api): Add prototype.
5652 * proc-flags.c: Include proc-utils.h.
5653
5654 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5655
5656 * configure.ac: Add AC_ARG_PROGRAM.
5657 * configure: Regenerate.
5658
5659 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5660
5661 Fix DW_AT_lower_bound defaults for DWARF-4+.
5662 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5663 high. New variable low_default_is_valid. Implement DWARF-4+
5664 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5665 no default by the DWARF standard.
5666
5667 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5668 Maciej W. Rozycki <macro@codesourcery.com>
5669
5670 * infrun.c (handle_inferior_event): Move the check for return
5671 trampolines ahead of the check for function trampolines.
5672 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5673 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5674 (mips_str_mips16_ret_stub): Likewise.
5675 (mips_str_call_fp_stub): Likewise.
5676 (mips_str_call_stub): Likewise.
5677 (mips_str_fn_stub): Likewise.
5678 (mips_str_pic): Likewise.
5679 (mips_in_frame_stub): New function.
5680 (mips_unwind_pc): Return the return address rather than the PC
5681 if the PC of an intermediate frame is inside a call thunk.
5682 (mips_is_stub_suffix): New function.
5683 (mips_is_stub_mode): Likewise.
5684 (mips_get_mips16_fn_stub_pc): Likewise.
5685 (mips_skip_mips16_trampoline_code): Update to handle all the
5686 currently generated stub types. Don't recurse into __fn_stub
5687 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5688 Use cooked register accesses.
5689 (mips_in_return_stub): Reintroduce function.
5690 (mips_skip_trampoline_code): Traverse trampolines recursively.
5691 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5692
5693 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5694
5695 GDB 7.4.1 released.
5696
5697 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5698
5699 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5700 * features/arm-with-m-vfp-d16.xml: New file. Describes
5701 Cortex-M with VFPv4-sp-d16 FPU register layout.
5702 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5703 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5704 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5705 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5706 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5707
5708 2012-04-25 Doug Evans <dje@google.com>
5709
5710 * cli/cli-decode.c (print_doc_line): Use stream instead of
5711 current_uiout.
5712
5713 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5714
5715 * features/arm-with-iwmmxt.c: Regenerate.
5716 * features/arm-with-m-fpa-layout.c: Likewise.
5717 * features/arm-with-m.c: Likewise.
5718 * features/arm-with-neon.c: Likewise.
5719 * features/arm-with-vfpv2.c: Likewise.
5720 * features/arm-with-vfpv3.c: Likewise.
5721 * features/mips-dsp-linux.c: Likewise.
5722 * features/mips-linux.c: Likewise.
5723 * features/mips64-dsp-linux.c: Likewise.
5724 * features/mips64-linux.c: Likewise.
5725 * features/s390-linux32.c: Likewise.
5726 * features/s390-linux32v1.c: Likewise.
5727 * features/s390-linux32v2.c: Likewise.
5728 * features/s390-linux64.c: Likewise.
5729 * features/s390-linux64v1.c: Likewise.
5730 * features/s390-linux64v2.c: Likewise.
5731 * features/s390x-linux64.c: Likewise.
5732 * features/s390x-linux64v1.c: Likewise.
5733 * features/s390x-linux64v2.c: Likewise.
5734 * features/tic6x-c62x-linux.c: Likewise.
5735 * features/tic6x-c62x.c: Likewise.
5736 * features/tic6x-c64x-linux.c: Likewise.
5737 * features/tic6x-c64x.c: Likewise.
5738 * features/tic6x-c64xp-linux.c: Likewise.
5739 * features/tic6x-c64xp.c: Likewise.
5740 * target-descriptions.c: Only generate `field_type' and `type'
5741 variables when needed.
5742
5743 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5744
5745 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5746
5747 2012-04-25 Doug Evans <dje@google.com>
5748
5749 Initial pass at Go language support.
5750 * NEWS: Mention Go.
5751 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5752 go-valprint.c.
5753 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5754 (YYFILES): Add go-exp.c.
5755 (YYOBJ): Add go-exp.o.
5756 (local-maintainer-clean): Delete go-exp.c.
5757 * defs.h (enum language): Add language_go.
5758 * dwarf2read.c: #include "go-lang.h".
5759 (fixup_go_packaging): New function.
5760 (process_full_comp_unit): Call it when processing Go CUs.
5761 (dwarf2_physname): Add Go support.
5762 (read_file_scope): Handle missing language spec for GNU Go.
5763 (set_cu_language): Handle DW_LANG_Go.
5764 * go-exp.y: New file.
5765 * go-lang.h: New file.
5766 * go-lang.c: New file.
5767 * go-typeprint.c: New file.
5768 * go-valprint.c: New file.
5769 * symtab.c: #include "go-lang.h".
5770 (symbol_set_language): Handle language_go.
5771 (symbol_find_demangled_name, symbol_set_names): Ditto.
5772 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5773
5774 2012-04-24 Jim Meyering <meyering@redhat.com>
5775
5776 avoid a few strncpy-induced buffer overruns
5777 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5778 fname and psargs before trying to concatenate.
5779 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5780 "name" before applying strchr.
5781
5782 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5783
5784 * CONTRIBUTE: Use unified diff instead of context diff when
5785 generating patches.
5786
5787 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5788
5789 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5790 code. Handle JR.HB correctly.
5791
5792 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5793
5794 * mips-tdep.c
5795 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5796 with the other MIPS16 helpers.
5797
5798 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5799
5800 * observer.sh: Conditionally declare `args', thus cleaning up
5801 unused instances of this variable.
5802
5803 2012-04-24 Yao Qi <yao@codesourcery.com>
5804
5805 Revert this patch to allow breakpoint always-inserted
5806 in record target.
5807 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5808 * breakpoint.c: Include record.h.
5809 (breakpoints_always_inserted_mode): Return false when the record
5810 target is in use.
5811
5812 * breakpoint.c (iterate_over_bp_locations): New.
5813 * breakpoint.h: Declare.
5814 New typedef walk_bp_location_callback.
5815 * record.c (record_open): Call record_init_record_breakpoints.
5816 (record_sync_record_breakpoints): New.
5817 (record_init_record_breakpoints): New.
5818 * NEWS: Mention supporting breakpoint always-inserted mode in
5819 record target.
5820
5821 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5822
5823 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5824 any thread.
5825
5826 2012-04-24 Yao Qi <yao@codesourcery.com>
5827
5828 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5829 (is_catchpoint): ... it.
5830 (print_one_breakpoint_location): Caller update.
5831 * breakpoint.h: Update declaration.
5832
5833 2012-04-23 David S. Miller <davem@davemloft.net>
5834
5835 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5836
5837 2012-04-23 Tom Tromey <tromey@redhat.com>
5838
5839 * buildsym.c (add_free_pendings): Remove.
5840 * buildsym.h (add_free_pendings): Remove.
5841
5842 2012-04-23 Doug Evans <dje@google.com>
5843
5844 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5845 attr.u.unsnd instead of attr.u.addr.
5846 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5847 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5848 DW_FORM_ref_udata.
5849 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5850 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5851 DW_FORM_ref_udata.
5852 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5853
5854 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5855
5856 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5857 (mips_o32_return_value): Likewise.
5858 (mips_o64_return_value): Likewise.
5859
5860 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5861
5862 * ada-lang.c (ada_evaluate_subexp): Add cases for
5863 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5864 their treatment in eval.c.
5865
5866 2012-04-21 David S. Miller <davem@davemloft.net>
5867
5868 * sparc-tdep.c (X_DISP10): Define.
5869 (sparc_analyze_control_transfer): Handle compare-and-branch.
5870
5871 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5872
5873 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5874 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5875
5876 2012-04-20 Nigel Stephens <nigel@mips.com>
5877 Maciej W. Rozycki <macro@codesourcery.com>
5878
5879 * mips-tdep.c (mips_float_register_p): New function.
5880 (mips_convert_register_float_case_p): Use mips_float_register_p.
5881 (mips_register_type): Likewise.
5882 (mips_print_register): Likewise.
5883 (print_gp_register_row): Likewise.
5884 (mips_print_registers_info): Likewise.
5885
5886 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5887
5888 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5889 of mips16 symbols.
5890
5891 2012-04-20 Andrew Pinski <apinski@cavium.com>
5892
5893 * MAINTAINERS (Write After Approval): Add myself to the list.
5894
5895 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5896
5897 * MAINTAINERS: Update my e-mail address.
5898
5899 2012-04-20 Pedro Alves <palves@redhat.com>
5900
5901 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5902 $srcdir.
5903 * configure: Regenerate.
5904
5905 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5906
5907 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5908 declaration.
5909 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5910
5911 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5912
5913 Fix compilation compatibility with python-2.4
5914 * python/py-type.c (convert_field): Cast ADDRSTRING for
5915 PyObject_SetAttrString as non-const. New comment.
5916
5917 2012-04-19 Tom Tromey <tromey@redhat.com>
5918
5919 * top.c (quit_target): Use all_cleanups.
5920 * main.c (captured_command_loop): Use all_cleanups.
5921 * exceptions.c (throw_exception): Use all_cleanups.
5922
5923 2012-04-19 Pedro Alves <palves@redhat.com>
5924
5925 * Makefile.in (GNULIB_BUILDDIR): New.
5926 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5927 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5928 (CLEANDIRS). Remove gnulib/import.
5929 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5930 (all-lib): Ditto.
5931 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5932 (gnulib/import/Makefile): Replace gnulib/import with
5933 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5934 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5935 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5936 acx_configure_dir.m4.
5937 * acinclude.m4: Include acx_configure_dir.m4.
5938 * acx_configure_dir.m4: New file.
5939 * aclocal.m4: Regenerate.
5940 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5941 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5942 (GNULIB): New variable.
5943 (GNULIB_STDINT_H): Adjust.
5944 (AC_OUTPUT): Don't output gnulib/Makefile.
5945 * gdb/defs.h: Include build-gnulib/config.h.
5946 * aclocal.m4: Regenerate.
5947 * config.in: Regenerate.
5948 * configure: Regenerate.
5949
5950 * gnulib/Makefile.in: New file.
5951 * gnulib/configure.ac: New file.
5952 * gnulib/aclocal.m4: New file.
5953 * gnulib/config.in: New file.
5954 * gnulib/configure: New file.
5955 * gnulib/: Re-run gnulib-tool to adjust.
5956
5957 2012-04-19 Doug Evans <dje@google.com>
5958
5959 * cleanups.h (struct cleanup): Move to cleanups.c.
5960 (make_cleanup_dtor_ftype): New typedef.
5961 (make_cleanup_dtor): Use it.
5962 (ALL_CLEANUPS): Replace with ...
5963 (all_cleanups): ... this. Declare. All uses updated.
5964 * cleanups.c: #include "gdb_assert.h".
5965 (sentinel_cleanup): New static global.
5966 (SENTINEL_CLEANUP): Define.
5967 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5968 (make_my_cleanup2): Assert result is non-NULL.
5969 (all_cleanups): New function.
5970 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5971 of NULL.
5972
5973 2012-04-19 Pedro Alves <palves@redhat.com>
5974
5975 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5976 Adjust paths to gnulib imported files.
5977
5978 2012-04-19 Pedro Alves <palves@redhat.com>
5979
5980 * gnulib/: Move whole directory ...
5981 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5982 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5983 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5984 (aclocal_m4_deps): Adjust.
5985 * aclocal.m4: Regenerate.
5986 * configure: Regenerate.
5987 * configure.ac: Adjust AC_OUTPUT output.
5988
5989 2012-04-19 Yao Qi <yao@codesourcery.com>
5990
5991 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5992 (vec.o): New rule.
5993 * vec.c: Move it ...
5994 * common/vec.c: ... here.
5995 * vec.h: Move it ...
5996 * common/vec.h: ... here.
5997
5998 2012-04-19 Yao Qi <yao@codesourcery.com>
5999
6000 * gdb-code-style.el: New.
6001
6002 2012-04-18 Pedro Alves <palves@redhat.com>
6003
6004 Update gnulib from latest git.
6005 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6006
6007 * gnulib/Makefile.am: Update.
6008 * gnulib/dummy.c: Update.
6009 * gnulib/extra/arg-nonnull.h: Update.
6010 * gnulib/extra/c++defs.h: Update.
6011 * gnulib/extra/update-copyright: Update.
6012 * gnulib/extra/warn-on-use.h: Update.
6013 * gnulib/inttypes.in.h: Update.
6014 * gnulib/m4/00gnulib.m4: Update.
6015 * gnulib/m4/extensions.m4: Update.
6016 * gnulib/m4/gnulib-cache.m4: Update.
6017 * gnulib/m4/gnulib-common.m4: Update.
6018 * gnulib/m4/gnulib-comp.m4: Update.
6019 * gnulib/m4/gnulib-tool.m4: Update.
6020 * gnulib/m4/include_next.m4: Update.
6021 * gnulib/m4/inttypes-pri.m4: Update.
6022 * gnulib/m4/inttypes.m4: Update.
6023 * gnulib/m4/longlong.m4: Update.
6024 * gnulib/m4/memchr.m4: Update.
6025 * gnulib/m4/memmem.m4: Update.
6026 * gnulib/m4/mmap-anon.m4: Update.
6027 * gnulib/m4/multiarch.m4: Update.
6028 * gnulib/m4/onceonly.m4: Update.
6029 * gnulib/m4/stddef_h.m4: Update.
6030 * gnulib/m4/stdint.m4: Update.
6031 * gnulib/m4/string_h.m4: Update.
6032 * gnulib/m4/warn-on-use.m4: Update.
6033 * gnulib/m4/wchar_h.m4: Update.
6034 * gnulib/m4/wchar_t.m4: Update.
6035 * gnulib/m4/wint_t.m4: Update.
6036 * gnulib/memchr.c: Update.
6037 * gnulib/memmem.c: Update.
6038 * gnulib/stddef.in.h: Update.
6039 * gnulib/stdint.in.h: Update.
6040 * gnulib/str-two-way.h: Update.
6041 * gnulib/string.in.h: Update.
6042 * gnulib/wchar.in.h: Update.
6043
6044 * gnulib/extra/arg-nonnull.h: Delete.
6045 * gnulib/extra/c++defs.h: Delete.
6046 * gnulib/extra/warn-on-use.h: Delete.
6047 * gnulib/m4/wchar_h.m4: Delete.
6048 * gnulib/m4/wint_t.m4: Delete.
6049 * gnulib/wchar.in.h: Delete.
6050
6051 * gnulib/extra/snippets/arg-nonnull.h: New.
6052 * gnulib/extra/snippets/c++defs.h: New.
6053 * gnulib/extra/snippets/warn-on-use.h: New.
6054
6055 * aclocal.m4: Regenerate.
6056 * config.in: Regenerate.
6057 * configure: Regenerate.
6058 * gnulib/Makefile.in: Regenerate.
6059
6060 2012-04-18 Pedro Alves <palves@redhat.com>
6061
6062 Reimport the update-copyright module from gnulib
6063 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6064
6065 * configure: Regenerate.
6066 * gnulib/Makefile.am: Update.
6067 * gnulib/Makefile.in: Regenerate.
6068 * gnulib/extra/update-copyright: Update.
6069 * gnulib/m4/gnulib-cache.m4: Update.
6070 * gnulib/m4/gnulib-comp.m4: Update.
6071
6072 2012-04-18 Tristan Gingold <gingold@adacore.com>
6073
6074 * configure.ac (aix): Put -lpthread into libs.
6075 * configure: Regenerate.
6076
6077 2012-04-18 Tom Tromey <tromey@redhat.com>
6078
6079 * linespec.c (convert_linespec_to_sals): Don't use
6080 SYMBOL_OBJ_SECTION.
6081 (compare_msymbols): Arguments are minsym_and_objfile, not
6082 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6083
6084 2012-04-18 Pedro Alves <palves@redhat.com>
6085
6086 Revert gnulib/ part of:
6087 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6088 Copyright year update in most files (performed by copyright.sh).
6089
6090 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 Fix 64-bit constants on 32-bit hosts.
6093 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6094 from unsigned long to ULONGEST.
6095 (read_signed_leb128): Change declaration return type from long to
6096 LONGEST.
6097 (dwarf2_const_value_attr): Change declaration parameter value from long
6098 to LONGEST.
6099 (dwarf2_compute_name): Change variable value from long to LONGEST.
6100 (read_unsigned_leb128): Change return type, variable result and some
6101 casts from unsigned long to ULONGEST.
6102 (read_signed_leb128): Change return type, variable result and some
6103 casts from long to LONGEST.
6104 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6105 value from long to LONGEST.
6106 (dwarf2_const_value): Change variable value from long to LONGEST.
6107 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6108 plongest and hex_string.
6109 * symtab.h (struct general_symbol_info): Change ivalue from long to
6110 LONGEST, remove the comment.
6111 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6112 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6113
6114 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6115
6116 PR symtab/7259:
6117 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6118 * ada-lang.c (ada_discrete_type_high_bound)
6119 (ada_discrete_type_low_bound): Fix function comment. Use
6120 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6121 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6122 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6123 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6124 Use TYPE_FIELD_ENUMVAL.
6125 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6126 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6127 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6128 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6129 TYPE_CODE_ENUM.
6130 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6131 * dwarf2read.c (process_enumeration_scope): Likewise.
6132 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6133 field.bitpos.
6134 (class StructMainTypePrettyPrinter): Support also
6135 FIELD_LOC_KIND_ENUMVAL.
6136 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6137 TYPE_CODE_ENUM.
6138 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6139 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6140 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6141 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6142 field enumval.
6143 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6144 accommodate enumval.
6145 (struct call_site): Adjust loc_kind to accommodate enumval.
6146 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6147 (TYPE_FIELD_ENUMVAL): New macros.
6148 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6149 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6150 TYPE_CODE_ENUM.
6151 * p-typeprint.c (pascal_type_print_base): Likewise.
6152 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6153 enumval.
6154 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6155 * python/py-type.c (convert_field): New variable addrstring. Use
6156 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6157 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6158 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6159 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6160 TYPE_CODE_ENUM.
6161 * valprint.c (generic_val_print): Likewise.
6162
6163 2012-04-17 Doug Evans <dje@google.com>
6164
6165 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6166
6167 * dwarf2read.c: Whitespace fixes.
6168 (lookup_signatured_type): Tweak comment.
6169 (get_die_type_at_offset): Fix comment.
6170
6171 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6172
6173 * xcoffread.c (xcoff_secnum_to_sections): New function.
6174 (secnum_to_section, secnum_to_bfd_section): Reimplement
6175 using xcoff_secnum_to_sections. Rename "secnum" parameter
6176 into "n_scnum".
6177 (RECORD_MINIMAL_SYMBOL): Delete.
6178 (record_minimal_symbol): New function.
6179 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6180 by call to record_minimal_symbol and set misc_func_recorded
6181 to 1. Set last_csect_sec to the XCOFF section index instead
6182 of GDB's section_offset index. Update calls to
6183 prim_record_minimal_symbol_and_info to pass the BFD section
6184 as well.
6185
6186 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6187
6188 * xcoffread.c (read_xcoff_symtab): Delete variables
6189 last_csect_val and last_csect_sec and associated code.
6190
6191 2012-04-17 Doug Evans <dje@google.com>
6192
6193 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6194 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6195 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6196 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6197
6198 * cleanups.h: New file.
6199 * cleanups.c: New file.
6200 * Makefile.in (SFILES): Add cleanups.c.
6201 (HFILES_NO_SRCDIR): Add cleanups.h.
6202 (COMMON_OBS): Add cleanups.o.
6203 * defs.h (struct cleanup): Moved to cleanups.h.
6204 (do_cleanups,do_final_cleanups): Ditto.
6205 (discard_cleanups,discard_final_cleanups): Ditto
6206 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6207 (save_cleanups,save_final_cleanups): Ditto.
6208 (restore_cleanups,restore_final_cleanups): Ditto.
6209 (null_cleanup): Ditto.
6210 (make_my_cleanup,make_my_cleanup2): Ditto.
6211 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6212 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6213 (do_cleanups,do_final_cleanups): Ditto.
6214 (discard_cleanups,discard_final_cleanups): Ditto
6215 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6216 (save_cleanups,save_final_cleanups): Ditto.
6217 (restore_cleanups,restore_final_cleanups): Ditto.
6218 (null_cleanup): Ditto.
6219 (make_my_cleanup,make_my_cleanup2): Ditto.
6220 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6221
6222 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6223 make_my_cleanup.
6224 (make_cleanup_dyn_string_delete): Ditto.
6225 (make_cleanup_ui_file_delete): Ditto.
6226 (make_cleanup_ui_out_redirect_pop): Ditto.
6227 (make_cleanup_free_section_addr_info): Ditto.
6228 (make_cleanup_restore_integer): Ditto.
6229 (make_cleanup_unpush_target): Ditto.
6230 (make_cleanup_value_free_to_mark): Ditto.
6231 (make_cleanup_value_free): Ditto.
6232 (make_cleanup_free_so): Ditto.
6233
6234 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6235
6236 New option "set debug auto-load".
6237 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6238 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6239 (auto_load_safe_path_vec_update)
6240 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6241 if DEBUG_AUTO_LOAD.
6242 (file_is_auto_load_safe): New parameters debug_fmt and ....
6243 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6244 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6245 caller by explanatory string.
6246 (_initialize_auto_load): Register "set debug auto-load".
6247 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6248 and ....
6249 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6250 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6251 by explanatory string.
6252 * main.c (captured_main): Likewise.
6253 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6254 (source_section_scripts): Likewise.
6255
6256 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 New option "set auto-load safe-path".
6259 * NEWS: New commands "set auto-load safe-path"
6260 and "show auto-load safe-path".
6261 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6262 (auto_load_safe_path, auto_load_safe_path_vec)
6263 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6264 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6265 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6266 (source_gdb_script_for_objfile): New variable is_safe. Call
6267 file_is_auto_load_safe. Return if it is not.
6268 (struct loaded_script): New field loaded.
6269 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6270 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6271 output "Missing" to "No".
6272 (_initialize_auto_load): New variable cmd. Initialize
6273 auto_load_safe_path. Register "set auto-load safe-path",
6274 "show auto-load safe-path" and "add-auto-load-safe-path".
6275 * auto-load.h (maybe_add_script): Add parameter loaded.
6276 (file_is_auto_load_safe): New declaration.
6277 * config.in: Regenerate.
6278 * configure: Regenerate.
6279 * configure.ac: New parameters --with-auto-load-safe-path
6280 and --without-auto-load-safe-path.
6281 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6282 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6283 * main.c (captured_main): Check file_is_auto_load_safe for
6284 LOCAL_GDBINIT.
6285 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6286 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6287 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6288 not.
6289
6290 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6291
6292 auto-load: Implementation.
6293 * NEWS: New descriptions for "info auto-load",
6294 "info auto-load gdb-scripts", "info auto-load python-scripts",
6295 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6296 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6297 and "show auto-load-scripts". New description for "set auto-load",
6298 "show auto-load", "set auto-load gdb-scripts",
6299 "show auto-load gdb-scripts", "set auto-load python-scripts",
6300 "show auto-load python-scripts", "set auto-load local-gdbinit",
6301 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6302 "show auto-load libthread-db".
6303 * auto-load.c: Remove include python/python-internal.h. Add includes
6304 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6305 cli/cli-setshow.h.
6306 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6307 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6308 (gdbpy_global_auto_load): Rename to ...
6309 (global_auto_load): ... here.
6310 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6311 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6312 (script_language_gdb, source_gdb_script_for_objfile): New.
6313 (struct loaded_script): New field language.
6314 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6315 LANGUAGE.
6316 (maybe_add_script): Add parameter language. Drop redundant
6317 entry.full_path initialization. Initialize entry.language and
6318 (*slot)->language.
6319 (auto_load_objfile_script): Change parameter suffix to language.
6320 Remove the call of maybe_add_script.
6321 Call language->source_script_for_objfile.
6322 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6323 New.
6324 (collect_matching_scripts): Adjust it for
6325 struct collect_matching_scripts_data.
6326 (auto_load_info_scripts_pattern_nl): New variable.
6327 (info_auto_load_scripts): Rename to ...
6328 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6329 for struct collect_matching_scripts_data.
6330 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6331 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6332 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6333 (auto_load_info_cmdlist_get): New.
6334 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6335 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6336 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6337 "info auto-load local-gdbinit".
6338 * auto-load.h (struct script_language): New.
6339 (gdbpy_global_auto_load): Rename to ...
6340 (global_auto_load): ... here.
6341 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6342 (auto_load_local_gdbinit_loaded): New declarations.
6343 (maybe_add_script): New parameter language.
6344 (auto_load_objfile_script): Change parameter suffix to language.
6345 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6346 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6347 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6348 declarations.
6349 * linux-thread-db.c: Include auto-load.h and ctype.h.
6350 (auto_load_thread_db, show_auto_load_thread_db): New.
6351 (struct thread_db_info): New field filename.
6352 (delete_thread_db_info): Call xfree for FILENAME.
6353 (try_thread_db_load): Initialize FILENAME.
6354 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6355 if !AUTO_LOAD_THREAD_DB.
6356 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6357 (_initialize_thread_db): Install auto_load_thread_db
6358 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6359 as "info auto-load libthread-db".
6360 * main.c (captured_main): Rename gdbpy_global_auto_load to
6361 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6362 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6363 (print_gdb_help): Extend the help for 'local init file'.
6364 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6365 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6366 (auto_load_scripts): Rename to ...
6367 (auto_load_python_scripts): ... here, update the comment.
6368 (gdbpy_load_auto_script_for_objfile): New declaration.
6369 (show_auto_load_python_scripts, script_language_python)
6370 (gdbpy_load_auto_script_for_objfile): New.
6371 (source_section_scripts): Refactor the code.
6372 (load_auto_scripts_for_objfile): Rename to ...
6373 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6374 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6375 (info_auto_load_python_scripts): New.
6376 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6377 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6378 Register "set auto-load-scripts" as its deprecated alias. Register
6379 "info auto-load python-scripts". Register "info auto-load-scripts" as
6380 its deprecated alias.
6381 (load_auto_scripts_for_objfile): Rename to ...
6382 (gdbpy_load_auto_scripts_for_objfile): ... here.
6383 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6384 (gdbpy_load_auto_scripts_for_objfile): ... here.
6385
6386 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6387
6388 auto-load: Move files.
6389 * Makefile.in (SFILES): Add auto-load.c.
6390 (HFILES_NO_SRCDIR): Add auto-load.h.
6391 (COMMON_OBS): Add auto-load.o.
6392 (distclean): Change .gdbinit for gdb-gdb.gdb.
6393 * auto-load.c: New file, with parts from python/py-auto-load.c.
6394 * auto-load.h: New file, with parts from python/python.h.
6395 * configure: Regenerate.
6396 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6397 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6398 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6399 * main.c: Include auto-load.h.
6400 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6401 command.h, observer.h and progspace.h to auto-load.c. Add include
6402 auto-load.h.
6403 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6404 (struct loaded_script, auto_load_pspace_data)
6405 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6406 (hash_loaded_script_entry, eq_loaded_script_entry)
6407 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6408 (maybe_add_script): Move to auto-load.c.
6409 (source_section_scripts): Change maybe_add_script parameters passing,
6410 use script_not_found_warning_print.
6411 (clear_section_scripts, auto_load_objfile_script)
6412 (auto_load_new_objfile, loaded_script_ptr)
6413 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6414 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6415 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6416 auto_load_new_objfile and info_auto_load_scripts initizations to
6417 auto-load.c.
6418 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6419
6420 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6421
6422 Code cleanup.
6423 * charset.c (find_charset_names): Remove variables ix and elt.
6424 Use free_char_ptr_vec.
6425 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6426 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6427 debugdir_end. New variable debugdir_len.
6428 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6429 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6430 declarations.
6431 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6432 and elt. Use free_char_ptr_vec.
6433 * source.c (add_path): Remove variables argv, arg and argv_index.
6434 New variables dir_vec, back_to, ix and name.
6435 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6436 make_cleanup_freeargv. Remove variable separator. Simplify the code
6437 no longer expecting DIRNAME_SEPARATOR.
6438 (openp): Remove variable p, p1 and len. New variables dir_vec,
6439 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6440 no longer expecting DIRNAME_SEPARATOR.
6441 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6442 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6443 debugdir_end.
6444 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6445 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6446 (dirnames_to_char_ptr_vec): New functions.
6447
6448 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6449
6450 Code cleanup.
6451 * source.c (add_path): Remove always true conditional 'p == 0' and
6452 unindent its code block.
6453
6454 2012-04-17 Pedro Alves <palves@redhat.com>
6455
6456 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6457 (FIELD_BITPOS_LVAL): ... this.
6458 (FIELD_BITPOS): New.
6459 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6460 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6461 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6462 SET_FIELD_BITPOS.
6463 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6464 SET_FIELD_BITPOS.
6465 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6466 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6467 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6468 SET_FIELD_BITPOS.
6469
6470 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6471
6472 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6473 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6474 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6475 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6476 * jv-lang.c (java_link_class_type): Likewise, once.
6477 * stabsread.c (read_enum_type): Likewise.
6478
6479 2012-04-16 Yao Qi <yao@codesourcery.com>
6480
6481 * common/agent.c (agent_run_command): Add one more parameter `len'.
6482 Update callers.
6483 * common/agent.h: Update declaration.
6484 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6485 Update.
6486 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6487
6488 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6489
6490 PR mi/13393
6491 * value.c (value_actual_type): New function.
6492 * value.h (value_actual_type): New declaration.
6493 * varobj.c (update_type_if_necessary): New function.
6494 (varobj_create): Call value_actual_type instead of
6495 value_type.
6496 (install_dynamic_child): distinct changed and type changed MI variable
6497 objects.
6498 (update_dynamic_varobj_children): Updated for install_dynamic_child
6499 change. All callers updated.
6500 (varobj_update): Support for MI variable object type change if
6501 the value changed and RTTI is used to determine the type.
6502 (create_child_with_value): Call value_actual_type instead of
6503 value_type.
6504 (adjust_value_for_child_access): Extended with a new parameter which
6505 specify whether the given value should be casted to enclosing type.
6506 All callers updated.
6507
6508 2012-04-14 Yao Qi <yao@codesourcery.com>
6509
6510 Import gnulib module inttypes from git
6511 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6512 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6513 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6514 gnulib/m4/inttypes-pri.m4
6515 * aclocal.m4, config.in, configure: Regenerated.
6516 * gnulib/Makefile.am: Update.
6517 * gnulib/Makefile.in: Update.
6518 * gnulib/m4/gnulib-cache.m4: Update.
6519 * gnulib/m4/gnulib-comp.m4: Update.
6520 * gnulib/inttypes.in.h: New.
6521 * gnulib/m4/inttypes-pri.m4: New.
6522 * gnulib/m4/inttypes.m4: New.
6523
6524 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6525
6526 * infrun.c (resume): Update PC address to the real PC after
6527 preparing to do displaced stepping.
6528
6529 2012-04-12 Doug Evans <dje@google.com>
6530
6531 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6532 All callers updated.
6533
6534 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6535
6536 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6537
6538 2012-04-12 Doug Evans <dje@google.com>
6539
6540 * dwarf2read.c (create_all_type_units): Renamed from
6541 create_debug_types_hash_table. All callers updated.
6542
6543 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6544 local type_sig to sig_type, type_offset to type_offset_in_tu.
6545 (hash_signatured_type): Renamed from hash_type_signature,
6546 all callers updated.
6547 (eq_signatured_type): Renamed from eq_type_signature,
6548 all callers updated.
6549 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6550 (process_enumeration_scope): Ditto.
6551 (lookup_signatured_type_at_offset): Ditto.
6552 (load_full_type_unit, read_signatured_type): Ditto.
6553
6554 2012-04-12 Yao Qi <yao@codesourcery.com>
6555
6556 * remote.c (async_remote_interrupt): Correct function name in
6557 debug message.
6558 (async_remote_interrupt_twice): Ditto.
6559
6560 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6561
6562 * source.c (find_and_open_source): Consistently pass resulting
6563 full path through xfullpath.
6564
6565 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Provide more specific displaced-stepping memory error message.
6568 * infrun.c (displaced_step_prepare): New variable status. Call
6569 target_read_memory instead of read_memory, provide more specific
6570 error message.
6571
6572 2012-04-11 Tristan Gingold <gingold@adacore.com>
6573
6574 PR gdb/13901
6575 * darwin-nat.c (darwin_execvp): Revert previous patch.
6576
6577 2012-04-11 Tristan Gingold <gingold@adacore.com>
6578
6579 PR gdb/13901
6580 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6581 in case of change.
6582
6583 2012-04-11 Tristan Gingold <gingold@adacore.com>
6584
6585 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6586 warning.
6587
6588 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6589
6590 New command 'explore' which helps explore values and types in
6591 scope.
6592 * NEWS: Add an entry about the new 'explore' command.
6593 * data-directory/Makefile.in: Add gdb/command/explore.py
6594 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6595 command using the GDB Python API.
6596
6597 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6598
6599 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6600 extension in jump target calculation.
6601
6602 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6603
6604 * mips-tdep.c (mips32_next_pc): Handle JALX.
6605
6606 2012-04-10 Yao Qi <yao@codesourcery.com>
6607
6608 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6609
6610 2012-04-10 Yao Qi <yao@codesourcery.com>
6611
6612 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6613 and gnulib/m4/gnulib-tool.m4.
6614
6615 2012-04-10 Doug Evans <dje@google.com>
6616
6617 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6618 (load_partial_dies): Clarify comment.
6619 (find_partial_die): Support rereading type units.
6620 Clarify CU handling, if we know offset is in CU, don't search for the
6621 containing CU. Add comment regarding memory waste.
6622
6623 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6624
6625 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6626 i386/x32-avx and i386/x32-avx-linux.
6627 (i386/x32-expedite): New.
6628 (i386/x32-linux-expedite): Likewise.
6629 (i386/x32-avx-expedite): Likewise.
6630 (i386/x32-avx-linux-expedite): Likewise.
6631 ($(outdir)/i386/x32.dat): Likewise.
6632 ($(outdir)/i386/x32-linux.dat): Likewise.
6633 ($(outdir)/i386/x32-avx.dat): Likewise.
6634 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6635
6636 * features/i386/x32-avx-linux.xml: New file.
6637 * features/i386/x32-avx.xml: Likewise.
6638 * features/i386/x32-core.xml: Likewise.
6639 * features/i386/x32-linux.xml: Likewise.
6640 * features/i386/x32.xml: Likewise.
6641
6642 * features/i386/x32-avx-linux.c: New. Generated.
6643 * features/i386/x32-avx.c: Likewise.
6644 * features/i386/x32-linux.c: Likewise.
6645 * features/i386/x32.c: Likewise.
6646 * regformats/i386/x32-avx-linux.dat: Likewise.
6647 * regformats/i386/x32-avx.dat: Likewise.
6648 * regformats/i386/x32-linux.dat: Likewise.
6649 * regformats/i386/x32.dat: Likewise.
6650
6651 2012-04-10 Tristan Gingold <gingold@adacore.com>
6652
6653 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6654 code to kill the inferior.
6655
6656 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6657
6658 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6659 defines.
6660 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6661 defines.
6662 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6663 (yyvsp): New defines.
6664 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6665 defines.
6666 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6667 defines.
6668 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6669 defines.
6670 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6671 defines.
6672 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6673 defines.
6674
6675 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6676
6677 * sparc64-tdep.c (sparc64_store_arguments)
6678 (sparc64_store_arguments): Fix coding style.
6679
6680 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6681
6682 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6683 complex floats, adjust some related comments and tighten a related
6684 assertion.
6685 (sparc64_extract_return_value): Handle complex floats.
6686
6687 2012-04-07 Doug Evans <dje@google.com>
6688
6689 * dwarf2read.c (load_partial_dies): Change condition to assert.
6690
6691 2012-04-06 Doug Evans <dje@google.com>
6692
6693 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6694 "mov %rsp,%rbp".
6695
6696 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6697
6698 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6699 fencepost error.
6700 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6701 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6702 architecture.
6703
6704 2012-04-05 Keith Seitz <keiths@redhat.com>
6705
6706 * linespec.c (decode_compound): Remove.
6707 (enum offset_relative_sign): New enum.
6708 (struct line_offset): New struct.
6709 (struct linespec): New struct.
6710 (struct linespec_state): Move file_symtabs,
6711 user_filename, and user_function into struct linespec.
6712 Make result an anonymous struct holding vectors of
6713 symbolp and minsym_and_objfile_d.
6714 Add language member.
6715 (enum ls_token_type): New enum.
6716 (linespec_keywords): New array.
6717 (struct ls_token): New struct.
6718 (struct ls_parser): New struct.
6719 (linespec_lexer_lex_number): New function.
6720 (linespec_lexer_lex_keyword): New function.
6721 (is_ada_operator): New function.
6722 (skip_quote_char): New function.
6723 (copy_token_string): New function.
6724 (is_closing_quote_enclosed): New function.
6725 (find_parameter_list_end): New function.
6726 (linespec_lexer_lex_string): New function.
6727 (linespec_lexer_lex_one): New function.
6728 (linespec_lexer_consume_token): New function.
6729 (linespec_lexer_peek_token): New function.
6730 (cplusplus_error): Remove unused function.
6731 (find_methods): Update comment.
6732 (find_toplevel_char): Return const.
6733 (is_objc_method_format): Remove unused function.
6734 (find_toplevel_string): New function.
6735 (is_linespec_boundary): Remove.
6736 (symbol_not_found_error): New function.
6737 (find_method_overload_end): Remove function.
6738 (unexpected_linespec_error): New function.
6739 (keep_name_info): Remove.
6740 (linespec_parse_line_offset): New function.
6741 (linespec_parse_basic): New function.
6742 (canonicalize_linespec): New function.
6743 (decode_line_internal): Remove.
6744 (create_sals_line_offset): New function adapted from
6745 decode_all_digits.
6746 (convert_linespec_to_sals): New function.
6747 (parse_linespec): New function.
6748 (linespec_parser_new): New function.
6749 (linespec_state_destructor): Change parameter type to
6750 struct linespec_state *.
6751 Add language parameter.
6752 Remove freeing of moved members.
6753 (linespec_parser_delete): New function.
6754 (decode_line_full): Use parse_linespec and linespec_parser_new.
6755 (decode_line_1): Likewise.
6756 (decode_indirect): Rename to ...
6757 (linespec_expression_to_pc): ... this and rewrite
6758 to simply find CORE_ADDR, storing this result for later
6759 conversion to SALs.
6760 (locate_first_half): Remove.
6761 (deocde_objc): Add parameter LS.
6762 Initialize new struct collect_info members.
6763 Handle minimal symbols, too.
6764 (decode_compound): Delete.
6765 (lookup_prefix_sym): Rewrite.
6766 (compare_msymbols): New function.
6767 (find_method): Rewrite.
6768 Do not call cplusplus_error.
6769 (symtabs_from_filename): Rewrite.
6770 (collect_function_symbols): Delete.
6771 (find_function_symbols): Rewrite without ARGPTR-style
6772 processing.
6773 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6774 (decode_dollar): Adapted and renamed to ...
6775 (linespec_parse_variable): ... this.
6776 (find_linespec_symbols): New function.
6777 (decode_label): Adapted and renamed to ...
6778 (find_label_symbols): ... this.
6779 (decode_digits_list_mode): Add and use LS argument.
6780 (decode_digits_ordinary): Likewise.
6781 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6782 If in list mode, allow any symbol class. Otherwise, only
6783 permit LOC_BLOCK symbols.
6784 (minsym_found): Update comments.
6785 (search_minsyms_for_name): Do not convert the matching symbol
6786 into a SAL. Simply push the symbol and objfile into the
6787 result vector.
6788 (decode_variable): Delete. Contents adapted into
6789 find_linespec_symbols.
6790
6791 * cp-support.c (SKIP_SPACE): Remove.
6792 (operator_tokens): Remove unused global.
6793 (cp_validate_operator): Remove.
6794 * cp-support.h (cp_validate_operator): Remove declaration.
6795
6796 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6797
6798 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6799 for TYPE_VPTR_FIELDNO.
6800 * valprint.c (valprint_check_validity): Make it global, move the
6801 function comment ...
6802 * value.h (valprint_check_validity): ... to this new declaration.
6803
6804 2012-04-02 Tristan Gingold <gingold@adacore.com>
6805
6806 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6807 the STATE32 api for i386 state.
6808 (i386_darwin_store_inferior_registers): Likewise.
6809
6810 2012-04-02 Tristan Gingold <gingold@adacore.com>
6811
6812 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6813 SS offset.
6814 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6815 format_string.
6816
6817 2012-04-02 Tristan Gingold <gingold@adacore.com>
6818
6819 PR gdb/13901
6820 * darwin-nat.c (darwin_execvp): Set binary preference.
6821
6822 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6823
6824 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6825
6826 2012-03-30 Tom Tromey <tromey@redhat.com>
6827
6828 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6829 of TRY_CATCH. Fix error handling.
6830 * python/py-value.c (convert_value_from_python): Move 'old'
6831 declaration to innermost scope.
6832
6833 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6834 Andrey Smirnov <andrew.smirnov@gmail.com>
6835
6836 -Wshadow warning fix.
6837 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6838 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6839 Adjust code accordingly.
6840
6841 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6842
6843 * ada-lang.c (symbol_completion_add): Rename parameter
6844 "encoded" into "encoded_p". Ajust code and documentation
6845 accordingly.
6846
6847 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6848 Andrey Smirnov <andrew.smirnov@gmail.com>
6849
6850 -Wshadow warning fix.
6851 * ada-lang.c (symbol_completion_add): Rename parameter
6852 "wild_match" into wild_match_p. Update code and documentation
6853 accordingly.
6854
6855 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6856
6857 * ada-lang.c (symbol_completion_match): Rename parameter
6858 "encoded" into "encoded_p". Ajust code and documentation
6859 accordingly.
6860
6861 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6862 Andrey Smirnov <andrew.smirnov@gmail.com>
6863
6864 -Wshadow warning fix.
6865 * ada-lang.c (symbol_completion_match): Rename parameter
6866 "wild_match" into "wild_match_p". Adjust code and function
6867 documentation accordingly.
6868
6869 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6870 Andrey Smirnov <andrew.smirnov@gmail.com>
6871
6872 -Wshadow warning fix.
6873 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6874 "symbol_info" into "info". Adjust code accordingly.
6875 (ada_lookup_symbol): Likewise.
6876
6877 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6878
6879 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6880 of this function's documentation.
6881
6882 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6883 Andrey Smirnov <andrew.smirnov@gmail.com>
6884
6885 -Wshadow warning fix.
6886 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6887 variable into "wild_match_p". Adjust code accordingly.
6888
6889 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6890 Andrey Smirnov <andrew.smirnov@gmail.com>
6891
6892 -Wshadow warning fix.
6893 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6894 parameter into "wild_match_p". Adjust code accordingly.
6895 Document this parameter in the function description.
6896
6897 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6898 Andrey Smirnov <andrew.smirnov@gmail.com>
6899
6900 -Wshadow warning fix.
6901 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6902 "wild_match" parameter to "wild_match_p" (-Wshadow).
6903
6904 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6905
6906 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6907 in function documentation.
6908
6909 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6910 Andrey Smirnov <andrew.smirnov@gmail.com>
6911
6912 -Wshadow warning fix.
6913 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6914 variable into wild_match_p. Adjust code accordingly.
6915
6916 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6917 Andrey Smirnov <andrew.smirnov@gmail.com>
6918
6919 * ada-valprint.c (ada_val_print_1): Move the code handling
6920 TYPE_CODE_ENUM inside its own lexical block. Declare
6921 variables len and val there, instead of in the function's
6922 top level block. Avoid declaring deref_val again in a way
6923 that shadows another variable of the same name declared
6924 in one of the up-level blocks. Just re-use the up-level
6925 variable instead.
6926
6927 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6928
6929 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6930 Replace block_found argument by symbol_info. Adjust
6931 implementation accordingly. Add function documentation.
6932 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6933 Fix documentation.
6934 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6935 * ada-exp.y (write_object_renaming): Adjust to new
6936 ada_lookup_encoded_symbol API.
6937
6938 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6939
6940 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6941 documentation.
6942
6943 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6944
6945 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6946 (v850_register_name): Add the mpu and fpu register names.
6947 (v850e_register_name): Add the mpu and fpu register names.
6948 (v850e2_register_name): New function.
6949 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6950 bfd_mach_v850e2v3.
6951
6952 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6953
6954 * NEWS: Add entry for Ada varobj support.
6955
6956 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6957
6958 * varobj.c (default_value_is_changeable_p): New function,
6959 extracted from varobj_value_is_changeable_p. Add declaration.
6960 (ada_value_is_changeable_p): New function, extracted from
6961 varobj_value_is_changeable_p. Add declaration.
6962 (struct language_specific): New field "value_is_changeable_p".
6963 (languages): Add entries for new field.
6964 (varobj_create): Set language before calling install_new_value.
6965 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6966 "value_is_changeable_p" language callback.
6967
6968 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6969
6970 * ada-varobj.h, ada-varobj.c: New files.
6971 * Makefile.in (SFILES): Add ada-varobj.c.
6972 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6973 (COMMON_OBS): Add ada-varobj.o.
6974
6975 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6976
6977 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6978 (struct language_specific): New field "value_has_mutated".
6979 (languages): Set field "value_has_mutated" in each entry of array.
6980 (varobj_value_has_mutated): New function.
6981 (varobj_udpdate): Add handling of type mutation.
6982 (value_of_root): Add handling of type mutation.
6983 (ada_value_has_mutated): New function.
6984
6985 2012-03-28 Pedro Alves <palves@redhat.com>
6986
6987 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6988 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6989
6990 2012-03-28 Tom Tromey <tromey@redhat.com>
6991
6992 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6993 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6994 before returning.
6995
6996 2012-03-28 Tom Tromey <tromey@redhat.com>
6997
6998 * .dir-locals.el: New file.
6999
7000 2012-03-28 Pedro Alves <palves@redhat.com>
7001
7002 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7003
7004 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7005
7006 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7007 handling for r0.
7008
7009 2012-03-27 Pedro Alves <palves@redhat.com>
7010
7011 Eliminate struct ui_stream.
7012
7013 * ui-out.h (struct ui_stream): Delete.
7014 (ui_out_field_stream): Adjust prototype.
7015 (ui_out_stream_new, ui_out_stream_delete)
7016 (make_cleanup_ui_out_stream_delete): Delete declarations.
7017 * ui-out.c (ui_out_field_stream): Change prototype to take a
7018 ui_file instead of a ui_stream. Adjust.
7019 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7020 (make_cleanup_ui_out_stream_delete): Delete.
7021 * breakpoint.c (print_breakpoint_location)
7022 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7023 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7024 * disasm.c (dump_insns): Ditto.
7025 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7026 prototype.
7027 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7028 ui_stream/ui_out_stream_new.
7029 * infcmd.c (print_return_value): Ditto.
7030 * osdata.c (info_osdata_command): Don't allocate a local
7031 ui_stream.
7032 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7033 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7034 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7035 allocate a local ui_stream.
7036 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7037 instead of ui_stream/ui_out_stream_new.
7038 (list_args_or_locals): Don't allocate a local ui_stream.
7039 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7040 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7041 ui_stream/ui_out_stream_new.
7042 * cli/cli-setshow.c (do_setshow_command): Ditto.
7043
7044 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7045
7046 * arm-linux-tdep.c (arm_linux_init_abi): Call
7047 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7048 * arm-tdep.c (arm_process_record): New function.
7049 (deallocate_reg_mem): New function.
7050 (decode_insn): New function.
7051 (thumb_record_branch): New function.
7052 (thumb_record_ldm_stm_swi(): New function.
7053 (thumb_record_misc): New function.
7054 (thumb_record_ld_st_stack): New function.
7055 (thumb_record_ld_st_imm_offset): New function.
7056 (thumb_record_ld_st_reg_offset(): New function.
7057 (thumb_record_add_sub_cmp_mov): New function.
7058 (thumb_record_shift_add_sub): New function.
7059 (arm_record_coproc_data_proc): New function.
7060 (arm_record_coproc): New function.
7061 (arm_record_b_bl): New function.
7062 (arm_record_ld_st_multiple): New function.
7063 (arm_record_ld_st_reg_offset): New function.
7064 (arm_record_ld_st_imm_offset): New function.
7065 (arm_record_data_proc_imm): New function.
7066 (arm_record_data_proc_misc_ld_str): New function.
7067 (arm_record_extension_space): New function.
7068 (arm_record_strx): New function.
7069 (sbo_sbz): New function.
7070 (struct insn_decode_record): New structure for arm insn record.
7071 (REG_ALLOC): New macro for reg allocations.
7072 (MEM_ALLOC): New macro for memory allocations.
7073 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7074
7075 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7076
7077 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7078 (store_register): Likewise.
7079
7080 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7081
7082 * MAINTAINERS (Write After Approval): Add myself to the list.
7083
7084 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7085
7086 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7087 Describe also the option "auto".
7088
7089 2012-03-22 Richard Henderson <rth@redhat.com>
7090
7091 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7092 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7093
7094 2012-03-22 Richard Henderson <rth@redhat.com>
7095
7096 * jit.c (jit_read_code_entry): Compute alignment and offset of
7097 int64_t member before computing entry_size.
7098
7099 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7100
7101 Python scripting: Add new method Value.referenced_value to
7102 gdb.Value which can dereference pointer as well as reference
7103 values.
7104 * NEWS: Add entry under 'Python scripting' about the new method
7105 Value.referenced_value on gdb.Value objects.
7106 * python/py-value.c (valpy_referenced_value): New function
7107 defining a new method on gdb.Value objects which can dereference
7108 pointer and reference values.
7109
7110 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7111
7112 * MAINTAINERS (Write After Approval): Add myself to the list.
7113
7114 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7115
7116 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7117 in addition to "main".
7118
7119 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7120
7121 * expression.h (op_name): Add declaration.
7122 * expprint.c (op_name): Remove declaration. Make non-static.
7123 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7124
7125 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7126
7127 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7128 of struct siginfo.
7129 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7130 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7131 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7132 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7133 (linux_nat_get_siginfo): Likewise.
7134 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7135 (linux_nat_get_siginfo): Likewise.
7136 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7137 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7138 * procfs.c (gdb_siginfo_t): Likewise.
7139
7140 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7141
7142 * .gitignore: Ignore more files.
7143
7144 2012-03-20 Pedro Alves <palves@redhat.com>
7145
7146 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7147 returns.
7148
7149 2012-03-20 Yao Qi <yao@codesourcery.com>
7150
7151 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7152 comment.
7153
7154 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7155
7156 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7157 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7158 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7159 sect_offset.
7160 * dwarf2expr.h (cu_offset, sect_offset): New types.
7161 (struct dwarf_expr_context_funcs) <dwarf_call>
7162 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7163 sect_offset.
7164 (struct dwarf_expr_context) <len>: Improve the comment.
7165 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7166 cu_offset and sect_offset.
7167 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7168 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7169 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7170 * dwarf2loc.h: Include dwarf2expr.h.
7171 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7172 and sect_offset.
7173 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7174 Improve the comment.
7175 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7176 (struct signatured_type, struct line_header, struct partial_die_info)
7177 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7178 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7179 (get_die_type_at_offset, create_cus_from_index)
7180 (create_signatured_type_table_from_index, dw2_get_file_names)
7181 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7182 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7183 (create_debug_types_hash_table, process_psymtab_comp_unit)
7184 (load_partial_comp_unit, create_all_comp_units)
7185 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7186 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7187 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7188 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7189 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7190 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7191 (find_partial_die, read_attribute_value, lookup_die_type)
7192 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7193 (is_ref_attr): New function comment.
7194 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7195 Use cu_offset and sect_offset.
7196 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7197 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7198 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7199 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7200 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7201 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7202 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7203 sect_offset.
7204
7205 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7206
7207 Code cleanup.
7208 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7209 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7210 with xfree.
7211 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7212
7213 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7214
7215 * NEWS: Describe new options --init-command=FILE, -ix and
7216 --init-eval-command=COMMAND, -iex.
7217 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7218 CMDARG_INIT_COMMAND.
7219 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7220 "init-command", "init-eval-command", "ix" and "iex" to the variable
7221 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7222 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7223 (print_gdb_help): Describe --init-command=FILE, -ix and
7224 --init-eval-command=COMMAND, -iex.
7225
7226 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 Code cleanup.
7229 * main.c (struct cmdarg): Move it here from main. Add more comments.
7230 (cmdarg_s, VEC (cmdarg_s)): New.
7231 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7232 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7233 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7234 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7235 of CMDARG.
7236
7237 2012-03-19 Tom Tromey <tromey@redhat.com>
7238
7239 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7240
7241 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7242
7243 PR symtab/13777
7244 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7245 GCC >=4.5.
7246
7247 2012-03-16 Chris January <chris.january@allinea.com>
7248
7249 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7250 of clear.
7251
7252 2012-03-16 Chris January <chris.january@allinea.com>
7253
7254 * source.c (add_path): Use memmove instead of strcpy because the
7255 strings overlap.
7256
7257 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7258
7259 * value.h (set_value_parent): Add declaration.
7260 * value.c (set_value_parent): New function.
7261 (value_address): If VALUE->PARENT is not NULL, then use it as
7262 the base address instead of VALUE->LOCATION.address.
7263 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7264 the same as OBJ's address. Adjust V's offset accordingly.
7265 Set V's parent.
7266
7267 2012-03-16 Gary Benson <gbenson@redhat.com>
7268
7269 PR breakpoints/10738
7270 * dwarf2read.c (use_deprecated_index_sections): New global.
7271 (struct partial_die_info): New member may_be_inlined.
7272 (read_partial_die): Set may_be_inlined where appropriate.
7273 (add_partial_subprogram): Add partial symbols for partial
7274 DIEs that may be inlined.
7275 (new_symbol_full): Add inlined subroutines to the current
7276 scope.
7277 (write_psymtabs_to_index): Bump version number.
7278 (dwarf2_read_index): Read only version 6 indices unless
7279 use_deprecated_index_sections is set.
7280 * linespec.c (symbol_and_data_callback): New structure.
7281 (iterate_inline_only): New function.
7282 (iterate_over_all_matching_symtabs): New argument
7283 "include_inline". If nonzero, also call the callback for
7284 symbols representing inlined subroutines.
7285 (lookup_prefix_sym): Pass extra argument to the above.
7286 (find_function_symbols): Likewise.
7287 (add_matching_symbols_to_info): Likewise.
7288 * NEWS: Mention that GDB can now set breakpoints on inlined
7289 functions.
7290
7291 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7292
7293 * p-typeprint.c (pascal_type_print_method_args):
7294 Fix display of parameter of methods.
7295
7296 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7297
7298 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7299 Add missing prototype.
7300
7301 2012-03-16 Yao Qi <yao@codesourcery.com>
7302 Jan Kratochvil <jan.kratochvil@redhat.com>
7303
7304 Fix false compilation warning.
7305 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7306
7307 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7308 Pedro Alves <pedro@codesourcery.com>
7309
7310 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7311 (arm_register_g_packet_guesses): New function.
7312 (arm_gdbarch_init): Don't force a target description with
7313 registers when the executable is detected as M-profile. Instead
7314 set gdbarch->tdep->is_m. Register `g' packet guesses.
7315 (_initialize_arm_tdep): Initialize the new target description.
7316 * features/arm-with-m-fpa-layout.xml: New description.
7317 * features/arm-with-m-fpa-layout.c: New, generated.
7318
7319 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7320
7321 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7322 Update function description.
7323 (insert_bp_location): Do not wipe bl->target_info out.
7324 * mem-break.c: #include "gdb_string.h".
7325 (default_memory_insert_breakpoint): Do not call target_read_memory
7326 with a pointer to the breakpoint's shadow_contents buffer. Use
7327 a local buffer instead.
7328 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7329
7330 2012-03-15 Tom Tromey <tromey@redhat.com>
7331
7332 * NEWS: Mention "info vtbl", not "info vtable".
7333 * cp-support.c (info_vtbl_command): Fix comment.
7334 (_initialize_cp_support): Fix text.
7335
7336 2012-03-15 Tom Tromey <tromey@redhat.com>
7337
7338 * cp-valprint.c (cp_print_value_fields): Use
7339 print_function_pointer_address for vtable slot.
7340
7341 2012-03-15 Tom Tromey <tromey@redhat.com>
7342
7343 * gnu-v3-abi.c (struct value_and_voffset): New.
7344 (hash_value_and_voffset, eq_value_and_voffset)
7345 (compare_value_and_voffset, compute_vtable_size)
7346 (print_one_vtable, gnuv3_print_vtable): New functions.
7347 (init_gnuv3_ops): Initialize 'print_vtable' field.
7348 * cp-support.c (info_vtbl_command): New function.
7349 (_initialize_cp_support): Add "info vtbl".
7350 * cp-abi.h (cplus_print_vtable): Declare.
7351 (struct cp_abi_ops) <print_vtable>: New field.
7352 * cp-abi.c (cplus_print_vtable): New function.
7353 * NEWS: Update.
7354
7355 2012-03-15 Tom Tromey <tromey@redhat.com>
7356
7357 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7358 iterate_over_symbols.
7359
7360 2012-03-14 Doug Evans <dje@google.com>
7361
7362 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7363 DW_OP_GNU_parameter_ref.
7364
7365 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 Fix double prompt of 'interpreter-exec mi'.
7368 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7369 (mi_interpreter_resume): use it.
7370 (mi_execute_command_input_handler): New function.
7371 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7372 mi_execute_command_input_handler.
7373
7374 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7375
7376 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7377 prototype.
7378 (darwin_debug_port_info): Make static.
7379 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7380 * machoread.c (_initialize_machoread): Add prototype.
7381 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7382 (i386_darwin_set_control, i386_darwin_get_control)
7383 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7384 i386_darwin_get_status, i386_darwin_get_control):
7385 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7386
7387 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7388
7389 * ax-gdb.c (gen_usual_unary): Remove special handling of
7390 enum and bool types.
7391
7392 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7393
7394 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7395
7396 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7397
7398 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7399
7400 2012-03-13 Chris January <chris.january@allinea.com>
7401
7402 * aix-thread.c (fill_sprs): Store the floating point registers
7403 at the correct offsets into vals.
7404
7405 2012-03-13 Doug Evans <dje@google.com>
7406
7407 * NEWS: Mention symbol-reloading has been deleted.
7408 * symfile.c (symbol_reloading): Delete.
7409 (show_symbol_reloading): Delete.
7410 (_initialize_symfile): Delete set/show symbol-reloading.
7411
7412 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7413 read_in_chain until we have successfully read it in.
7414 (load_full_comp_unit): Ditto.
7415 (read_signatured_type): Add comment.
7416
7417 2012-03-13 Chris January <chris.january@allinea.com>
7418
7419 * stabsread.c (fix_common_block): Change type of valu argument
7420 to CORE_ADDR.
7421
7422 2012-03-13 Chris January <chris.january@allinea.com>
7423
7424 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7425 instruction.
7426
7427 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 * common/linux-procfs.c (linux_proc_get_int): New, from
7430 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7431 field.
7432 (linux_proc_get_tgid): Only call linux_proc_get_int.
7433 (linux_proc_get_tracerpid): New.
7434 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7435 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7436 linux_proc_pid_has_state.
7437 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7438 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7439 (linux_ptrace_attach_warnings): New.
7440 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7441 New declaration.
7442 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7443 (linux_nat_attach): New variables ex, buffer, message and message_s.
7444 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7445
7446 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 * Makefile.in (linux-ptrace.o): New.
7449 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7450 from linux-nat.c.
7451 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7452 * common/linux-ptrace.c: New file.
7453 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7454 * config/arm/linux.mh: Likewise.
7455 * config/i386/linux.mh: Likewise.
7456 * config/i386/linux64.mh: Likewise.
7457 * config/ia64/linux.mh: Likewise.
7458 * config/m32r/linux.mh: Likewise.
7459 * config/m68k/linux.mh: Likewise.
7460 * config/mips/linux.mh: Likewise.
7461 * config/pa/linux.mh: Likewise.
7462 * config/powerpc/linux.mh: Likewise.
7463 * config/powerpc/ppc64-linux.mh: Likewise.
7464 * config/powerpc/spu-linux.mh: Likewise.
7465 * config/s390/s390.mh: Likewise.
7466 * config/sparc/linux.mh: Likewise.
7467 * config/sparc/linux64.mh: Likewise.
7468 * config/xtensa/linux.mh: Likewise.
7469 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7470 common/linux-procfs.c.
7471 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7472
7473 2012-03-13 Hui Zhu <teawater@gmail.com>
7474 Pedro Alves <palves@redhat.com>
7475
7476 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7477 CREATE_BREAKPOINT_FLAGS_INSERTED.
7478 (create_breakpoint_sal, create_breakpoints_sal)
7479 (base_breakpoint_create_breakpoints_sal)
7480 (tracepoint_create_breakpoints_sal)
7481 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7482 down.
7483 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7484 (ftrace_command, strace_command): Adjust.
7485 (create_tracepoint_from_upload): Pass
7486 CREATE_BREAKPOINT_FLAGS_INSERTED.
7487 * breakpoint.h (enum breakpoint_create_flags): New.
7488 (create_breakpoint): New flags parameter.
7489 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7490 * python/py-breakpoint.c (bppy_init): Adjust.
7491 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7492 * spu-tdep.c (spu_catch_start): Adjust.
7493
7494 2012-03-13 Pedro Alves <palves@redhat.com>
7495 Hui Zhu <teawater@gmail.com>
7496 Yao Qi <yao@codesourcery.com>
7497
7498 * remote.c (struct remote_state): New field `starting_up'.
7499 (remote_start_remote): Set and clear it.
7500 (remote_can_download_tracepoint): If starting up, return false.
7501
7502 2012-03-13 Yao Qi <yao@codesourcery.com>
7503
7504 * inferior.h (struct inferior): Remove fields any_syscall_count,
7505 syscalls_counts and total_syscalls_count. Move them to new
7506 struct catch_syscall_inferior_data in breakpoint.c.
7507 * breakpoint.c: Call DEF_VEC_I(int).
7508 (struct catch_syscall_inferior_data): New.
7509 (get_catch_syscall_inferior_data): New.
7510 (catch_syscall_inferior_data_cleanup): New.
7511 (insert_catch_syscall): Update to access data in
7512 struct catch_syscall_inferior_data.
7513 (insert_catch_syscall): Likewise.
7514 (remove_catch_syscall): Likewise.
7515 (remove_catch_syscall): Likewise.
7516 (is_syscall_catchpoint_enabled): Likewise.
7517 (add_catch_command): Likewise.
7518 (_initialize_breakpoint): Register cleanup.
7519 * breakpoint.h: Removed DEF_VEC_I(int).
7520 * dwarf2loc.c: Call DEF_VEC_I(int).
7521 * mi/mi-main.c: Likewise.
7522
7523 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7524
7525 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7526
7527 2012-03-12 Chris January <chris.january@allinea.com>
7528
7529 * aix-thread.c (_initialize_aix_thread): Add prototype.
7530 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7531 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7532
7533 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7534
7535 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7536 include of "amd64-nat.h".
7537
7538 2012-03-12 Tom Tromey <tromey@redhat.com>
7539
7540 * buildsym.c (record_pending_block): Now static.
7541 * buildsym.h: (record_pending_block): Remove.
7542
7543 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7544
7545 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7546
7547 2012-03-09 Tom Tromey <tromey@redhat.com>
7548
7549 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7550 producer_is_gxx_lt_4_6>: New fields.
7551 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7552
7553 2012-03-09 Tom Tromey <tromey@redhat.com>
7554
7555 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7556
7557 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7558
7559 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7560 prototype.
7561
7562 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7563
7564 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7565
7566 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 Fix -Wmissing-prototypes build.
7569 * arm-linux-nat.c (get_thread_id): Make it static.
7570 * xtensa-linux-nat.c (get_thread_id): Likewise.
7571
7572 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7573
7574 * server.c (process_point_options): If a conditional expression
7575 is found, only print a message if remote_debug is nonzero.
7576
7577 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7578
7579 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7580 of internal error for unknown/unsupported types.
7581
7582 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7583
7584 Fix CU relative vs. absolute DIE offsets.
7585 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7586 offset to offset_in_cu.
7587 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7588 TYPE_OFFSET.
7589 (dwarf2_fetch_die_location_block): Rename parameter offset to
7590 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7591
7592 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 * libunwind-frame.c: Rename to ...
7595 * ia64-libunwind-tdep.c: ... here.
7596 * libunwind-frame.h: Rename to ...
7597 * ia64-libunwind-tdep.h: ... here.
7598 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7599 ia64-libunwind-tdep.h.
7600 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7601 * README (--with-libunwind): Rename to ...
7602 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7603 * config.in: Regenerate.
7604 * configure: Regenerate.
7605 * configure.ac: New option --with-libunwind-ia64, make the
7606 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7607 Remove AC_DEFINE for HAVE_LIBUNWIND.
7608 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7609 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7610 Rename libunwind-frame in the general comment.
7611 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7612 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7613 Move forward declarations inside #ifndef. Rename libunwind-frame in
7614 the general comment.
7615 * ia64-tdep.c: Rename libunwind-frame.h #include to
7616 ia64-libunwind-tdep.h.
7617 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7618 (ia64_libunwind_descr): Rename libunwind-frame to
7619 ia64-libunwind-tdep in these function comments.
7620 * ia64-tdep.h: Rename libunwind-frame.h #include to
7621 ia64-libunwind-tdep.h.
7622 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7623 ia64-libunwind-tdep in that data comment.
7624
7625 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7626
7627 * libunwind-frame.h (struct frame_unwind): New declaration.
7628
7629 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7630
7631 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7632 "set breakpoint condition-evaluation" command.
7633
7634 2012-03-08 Tristan Gingold <gingold@adacore.com>
7635
7636 * sparc-stub.c: Move to stubs/
7637 * sh-stub.c: Likewise.
7638 * m68k-stub.c: Likewise.
7639 * m32r-stub.c: Likewise.
7640 * i386-stub.c: Likewise.
7641
7642 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7643
7644 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7645 linux_get_siginfo_type.
7646
7647 * m68klinux-nat.c: Include "gdb_proc_service.h".
7648 (PTRACE_GET_THREAD_AREA): Define.
7649 (ps_get_thread_area): New function.
7650
7651 2012-03-08 Yao Qi <yao@codesourcery.com>
7652
7653 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7654 `xsnprintf'.
7655 (remote_query_attached): Likewise.
7656 (remote_static_tracepoint_marker_at): Likewise.
7657 (remote_set_permissions): Likewise.
7658 (remote_detach_1, extended_remote_attach_1): Likewise.
7659 (send_g_packet, remote_vkill): Likewise.
7660 (extended_remote_disable_randomization): Likewise.
7661 (remote_add_target_side_condition): Likewise.
7662 (remote_insert_breakpoint): Likewise.
7663 (remote_remove_breakpoint): Likewise.
7664 (remote_insert_watchpoint): Likewise.
7665 (remote_remove_watchpoint): Likewise.
7666 (remote_insert_hw_breakpoint): Likewise.
7667 (remote_insert_hw_breakpoint): Likewise.
7668 (remote_remove_hw_breakpoint): Likewise.
7669 (remote_download_command_source): Likewise.
7670 (remote_download_tracepoint): Likewise.
7671 (remote_download_trace_state_variable): Likewise.
7672 (remote_disable_tracepoint): Likewise.
7673 (remote_trace_set_readonly_regions): Likewise.
7674 (remote_get_tracepoint_status): Likewise.
7675 (remote_trace_find): Likewise.
7676 (remote_get_trace_state_variable_value): Likewise.
7677 (remote_set_disconnected_tracing): Likewise.
7678 (remote_set_circular_trace_buffer): Likewise.
7679 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7680 (remote_use_agent): Likewise.
7681 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7682 Update callers.
7683
7684 2012-03-07 Pedro Alves <palves@redhat.com>
7685
7686 * NEWS: Mention QProgramSignals.
7687 * inferior.h (update_signals_program_target): Declare.
7688 * infrun.c: (update_signals_program_target): New.
7689 (handle_command): Update the target of the new program signals
7690 array changes.
7691 * remote.c (PACKET_QProgramSignals): New enum.
7692 (last_program_signals_packet): New global.
7693 (remote_program_signals): New.
7694 (remote_start_remote): Update the target with the program signals
7695 list.
7696 (remote_protocol_features): Add entry for QPassSignals.
7697 (remote_open_1): Free anc clear last_program_signals_packet.
7698 (init_remote_ops): Install remote_program_signals.
7699 * target.c (update_current_target): Adjust.
7700 (target_program_signals): New.
7701 * target.h (struct target_ops) <to_program_signals>: New field.
7702 (target_program_signals): Declare.
7703
7704 2012-03-07 Pedro Alves <palves@redhat.com>
7705
7706 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7707 extensions.
7708
7709 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7710
7711 * m68klinux-nat.c (getregs_supplies): Make static.
7712 (getfpregs_supplies): Likewise.
7713 (have_ptrace_getregs): Likewise.
7714
7715 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7716
7717 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7718 in call to get_die_type_at_offset.
7719
7720 2012-03-06 Stan Shebs <stan@codesourcery.com>
7721
7722 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7723 * mi/mi-cmd-disas.c: Ditto.
7724 * mi/mi-cmd-env.c: Ditto.
7725 * mi/mi-cmd-file.c: Ditto.
7726 * mi/mi-cmd-stack.c: Ditto.
7727 * mi/mi-cmd-target.c: Ditto.
7728 * mi/mi-cmd-var.c: Ditto.
7729 * mi/mi-cmds.c: Ditto.
7730 * mi/mi-cmds.h: Ditto.
7731 * mi/mi-console.c: Ditto.
7732 * mi/mi-getopt.c: Ditto.
7733 * mi/mi-getopt.h: Ditto.
7734 * mi/mi-interp.c: Ditto.
7735 * mi/mi-main.c: Ditto.
7736 * mi/mi-out.c: Ditto.
7737 * mi/mi-parse.c: Ditto.
7738 * mi/mi-parse.h: Ditto.
7739 * mi/mi-symbol-cmds.c: Ditto.
7740
7741 * mi/mi-getopt.h: Move mi_opt struct up.
7742 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7743 return.
7744 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7745
7746 2012-03-06 Tom Tromey <tromey@redhat.com>
7747
7748 * proc-service.c (ps_pglobal_lookup): Set the current program
7749 space.
7750
7751 2012-03-06 Pedro Alves <palves@redhat.com>
7752
7753 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7754
7755 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7756
7757 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7758
7759 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 Code cleanup.
7762 * common/linux-osdata.c (linux_common_core_of_thread): New function
7763 comment.
7764 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7765 call by linux_common_core_of_thread.
7766 (linux_nat_core_of_thread_1): Remove.
7767 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7768 * linux-thread-db.c: Include linux-osdata.h.
7769 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7770 linux_common_core_of_thread.
7771
7772 2012-03-05 Tom Tromey <tromey@redhat.com>
7773
7774 * value.c (value_primitive_field): Don't fetch contents for
7775 non-virtual bases.
7776
7777 2012-03-05 Tom Tromey <tromey@redhat.com>
7778
7779 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7780
7781 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7782
7783 * s390-nat.c: Include "gregset.h".
7784
7785 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7786
7787 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7788 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7789 (libunwind_load): New variable so_error, use it for dlerror. Try to
7790 load also LIBUNWIND_SO_7.
7791
7792 2012-03-05 Pedro Alves <palves@redhat.com>
7793
7794 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7795 is not NULL, and remove resulting dead code.
7796
7797 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7798
7799 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7800 prologue to sh_analyze_prologue.
7801 (sh_analyze_prologue): Make better use of such an upper limit, and
7802 generally be more cautious about accessing memory.
7803
7804 2012-03-05 Tom Tromey <tromey@redhat.com>
7805
7806 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7807 _initialize_ia64_hpux_tdep.
7808
7809 2012-03-05 Pedro Alves <palves@redhat.com>
7810
7811 PR gdb/13766
7812
7813 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7814 the register state is clear, supply explicit zero, instead of
7815 marking the register unavailable.
7816
7817 2012-03-05 Tristan Gingold <gingold@adacore.com>
7818
7819 * NEWS: Mention OpenVMS ia64 new target.
7820
7821 2012-03-05 Tristan Gingold <gingold@adacore.com>
7822
7823 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7824 (ia64_unw_accessors, ia64_unw_rse_accessors)
7825 (ia64_libunwind_descr): Declare.
7826 * ia64-vms-tdep.c: New file.
7827 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7828 (ia64_libunwind_descr): Make them public.
7829 * configure.tgt: Add ia64-*-*vms*.
7830 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7831 (ALLDEPFILES): Add ia64-vms-tdep.c
7832
7833 2012-03-05 Tristan Gingold <gingold@adacore.com>
7834
7835 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7836 * remote.c (PACKET_qXfer_uib): New enum value.
7837 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7838 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7839 (_initialize_remote): Call add_packet_config_cmd for
7840 xfer:uib packet.
7841
7842 2012-03-05 Tristan Gingold <gingold@adacore.com>
7843
7844 * osabi.c (gdb_osabi_names): Add OpenVMS.
7845 (generic_elf_osabi_sniffer): Likewise.
7846 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7847
7848 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 Removed unused code.
7851 * libunwind-frame.c (libunwind_frame_unwind)
7852 (libunwind_frame_base_address): Remove.
7853 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7854
7855 2012-03-04 Yao Qi <yao@codesourcery.com>
7856
7857 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7858 remove trailing new line.
7859 (agent_run_command, agent_run_command): Add _ markup.
7860 (agent_capability_check): Likewise.
7861
7862 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7863
7864 * breakpoint.c (set_condition_evaluation_mode): Set
7865 CONDITION_EVALUATION_MODE unconditionally.
7866
7867 2012-03-03 Yao Qi <yao@codesourcery.com>
7868
7869 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7870 * common/agent.h: Update declaration.
7871 * inf-child.c (inf_child_use_agent): New.
7872 (inf_child_can_use_agent): New.
7873 (inf_child_target): Initialize fields `to_use_agent'
7874 and `to_can_use_agent'.
7875 * agent.c (agent_new_objfile): New.
7876 (_initialize_agent): Add agent_new_objfile to new_objfile
7877 observer.
7878
7879 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7880 New.
7881 (linux_target_install_ops): Initialize field
7882 `to_static_tracepoint_markers_by_strid'.
7883 * remote.c (free_current_marker): Move it to ...
7884 * tracepoint.c (free_current_marker): ... here. New.
7885 (cleanup_target_stop): New.
7886 * tracepoint.h: Declare free_current_marker.
7887 * NEWS: Add one entry about `info static-tracepoint-marker'.
7888
7889 2012-03-03 Yao Qi <yao@codesourcery.com>
7890
7891 * common/agent.c (agent_loaded_p): New.
7892 (agent_look_up_symbols): New global.
7893 * common/agent.h: Declare agent_loaded_p.
7894
7895 2012-03-03 Yao Qi <yao@codesourcery.com>
7896
7897 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7898 (agent_capability_check, agent_capability_invalidate): New.
7899 (symbol_list): New array element.
7900 * common/agent.h (enum agent_capa): New.
7901 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7902
7903 2012-03-03 Yao Qi <yao@codesourcery.com>
7904
7905 * target.h (struct target_ops) <to_use_agent>: New field.
7906 (struct target_ops) <to_can_use_agent>: New field.
7907 (target_use_agent, target_can_use_agent): New macro.
7908 * target.c (update_current_target): Update.
7909 * remote.c: New enum `PACKET_QAgent'.
7910 (remote_protocol_features): Add a new element.
7911 (remote_use_agent, remote_can_use_agent): New.
7912 (init_remote_ops): Initialize field `can_use_agent' with
7913 remote_can_use_agent. Intiailize field `use_agent' with
7914 remote_use_agent.
7915 * common/agent.c (use_agent): New global.
7916 * common/agent.h: Declare it.
7917 * tracepoint.c (info_static_tracepoint_markers_command): Add
7918 comment.
7919 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7920 (COMMON_OBS): Add common/agent.o and agent.o
7921 (common-agent.o): New rule.
7922 * agent.c: New.
7923
7924 2012-03-03 Yao Qi <yao@codesourcery.com>
7925
7926 * common/agent.c: New.
7927 * common/agent.h: New.
7928 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7929 AC_CHECK_HEADERS.
7930 * configure, configh.in: Regenerated.
7931
7932 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7933
7934 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7935 unless it exists for this architecture.
7936
7937 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7938
7939 * language.h (struct language_defn): New "method" la_read_var_value.
7940 * findvar.c: #include "language.h".
7941 (default_read_var_value): Renames read_var_value. Rewrite
7942 function description.
7943 (read_var_value): New function.
7944 * value.h (default_read_var_value): Add prototype.
7945 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7946 New functions.
7947 (ada_language_defn): Add entry for la_read_var_value.
7948 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7949 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7950 language_defn structures to add entry for new la_read_var_value
7951 field.
7952
7953 2012-03-02 Tom Tromey <tromey@redhat.com>
7954 Pedro Alves <palves@redhat.com>
7955
7956 PR breakpoints/13776:
7957 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7958 breakpoints.
7959 (delete_longjmp_breakpoint_at_next_stop): New.
7960 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7961 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7962 before deleting the inferior. Add comments.
7963 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7964 breakpoints immediately, but only on next stop. Move that code
7965 next to where we mark other breakpoints for deletion.
7966
7967 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7968
7969 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7970 marker.
7971 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7972 violation.
7973
7974 2012-03-02 Pedro Alves <palves@redhat.com>
7975
7976 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7977
7978 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7979
7980 Fix -Wmissing-prototypes build.
7981 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7982 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7983 (gdbsim_has_memory): Likewise.
7984
7985 2012-03-02 Yao Qi <yao@codesourcery.com>
7986
7987 Fix -Wmissing-prototypes build.
7988 * charset.c (phony_iconv_open): Make static.
7989 (phony_iconv_close, phony_iconv): Likewise.
7990 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7991 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7992 prototype.
7993 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7994 * ser-mingw.c (create_select_thread): Make static.
7995 * windows-termcap.c (tgetent): New prototype.
7996 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7997
7998 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7999
8000 Fix -Wmissing-prototypes build.
8001 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8002 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8003 (_initialize_loadable): New prototypes.
8004
8005 2012-03-02 Doug Evans <dje@google.com>
8006
8007 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8008 abbrev table, read_comp_unit will do it.
8009
8010 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8011
8012 Fix -Wmissing-prototypes build.
8013 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8014 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8015 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8016 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8017 (_initialize_arm_symbian_tdep): New prototype.
8018 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8019 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8020 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8021 static.
8022 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8023 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8024 prototype.
8025 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8026 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8027 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8028 static.
8029 * moxie-tdep.c (moxie_process_record): Likewise.
8030 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8031 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8032 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8033 (_initialize_rl78_tdep): New prototype.
8034 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8035 (_initialize_rx_tdep): New prototype.
8036 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8037 (_initialize_darwin_solib): New prototype.
8038 * solib-spu.c: Include solib-spu.h.
8039 (_initialize_spu_solib): New prototype.
8040 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8041 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8042 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8043 (tic6x_software_single_step): Make it static.
8044 (_initialize_tic6x_tdep): New prototype.
8045
8046 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8047
8048 Fix -Wmissing-prototypes build.
8049 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8050 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8051
8052 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 Fix -Wmissing-prototypes build.
8055 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8056 (frv_have_stopped_data_address): Remove.
8057
8058 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8059
8060 Fix -Wmissing-prototypes build.
8061 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8062 * sh-tdep.c: Include sh64-tdep.h.
8063 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8064 * sh64-tdep.c: Include sh64-tdep.h.
8065 * sh64-tdep.h: New file.
8066
8067 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8068
8069 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8070
8071 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8072
8073 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8074 sp_regnum once the gdbarch_init_osabi hook has been called.
8075
8076 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8077
8078 * mips-tdep.c (mips32_bc1_pc): New function.
8079 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8080 BPOSGE32 and BPOSGE64 instructions.
8081 (deal_with_atomic_sequence): Likewise.
8082 (mips32_instruction_has_delay_slot): Likewise.
8083
8084 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8085 Chris Dearman <chris@mips.com>
8086 Maciej W. Rozycki <macro@codesourcery.com>
8087 Joseph Myers <joseph@codesourcery.com>
8088
8089 * features/mips-dsp.xml: New file.
8090 * features/mips64-dsp.xml: New file.
8091 * features/mips-dsp-linux.xml: New file.
8092 * features/mips64-dsp-linux.xml: New file.
8093 * features/Makefile (WHICH): Add mips-dsp-linux and
8094 mips64-dsp-linux.
8095 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8096 * features/mips-dsp-linux.c: New file.
8097 * features/mips64-dsp-linux.c: New file.
8098 * regformats/mips-dsp-linux.dat: New file.
8099 * regformats/mips64-dsp-linux.dat: New file.
8100 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8101 registers.
8102 (mips64_linux_register_addr): Likewise.
8103 (mips64_linux_regsets_fetch_registers): Likewise.
8104 (mips64_linux_regsets_store_registers): Likewise.
8105 (mips64_linux_fetch_registers): Update call to
8106 mips64_linux_regsets_fetch_registers.
8107 (mips64_linux_store_registers): Update call to
8108 mips64_linux_regsets_store_registers.
8109 (mips_linux_read_description): Probe for DSP registers.
8110 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8111 and initialize_tdesc_mips64_dsp_linux.
8112 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8113 Remove padding of no longer used embedded register slots.
8114 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8115 (MIPS_RESTART_REGNUM): Redefine enum value.
8116 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8117 strings.
8118 (mips_tx39_reg_names): Likewise.
8119 (mips_linux_reg_names): New array of register names for Linux
8120 targets.
8121 (mips_register_name): Check for a null pointer in
8122 mips_processor_reg_names and return an empty string.
8123 (mips_register_type): Exclude embedded registers for the IRIX
8124 and Linux ABIs.
8125 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8126 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8127 DSP registers.
8128 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8129 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8130 (mips_gdbarch_init): Likewise. Initialize internal register
8131 indices for the Linux ABI. Use dynamic numbers to refer to
8132 registers, as applicable, while parsing the target description.
8133 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8134
8135 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8136
8137 * frame.h (read_frame_register_unsigned): Fix typo in function
8138 description.
8139
8140 2012-03-01 Pedro Alves <palves@redhat.com>
8141
8142 * jit-reader.in [!__cplusplus]
8143 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8144
8145 2012-03-01 Pedro Alves <palves@redhat.com>
8146
8147 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8148 * configure: Regenerate.
8149
8150 2012-03-01 Pedro Alves <palves@redhat.com>
8151
8152 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8153 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8154 (ftrace_command, strace_command): Make static.
8155 * d-lang.c (_initialize_d_language): Declare.
8156 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8157 * dwarf2loc.c (_initialize_dwarf2loc):
8158 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8159 * exec.c (exec_get_section_table): Make static.
8160 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8161 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8162 * inferior.c (remove_inferior_command, add_inferior_command)
8163 (clone_inferior_command): Make static.
8164 * linux-nat.c (linux_nat_thread_address_space)
8165 (linux_nat_core_of_thread): Make static.
8166 * linux-tdep.c (_initialize_linux_tdep): Declare.
8167 * objc-lang.c (_initialize_objc_lang): Declare.
8168 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8169 Make static.
8170 (_initialize_opencl_language): Declare.
8171 * record.c (_initialize_record): Declare.
8172 * remote.c (demand_private_info, remote_get_tib_address)
8173 (remote_supports_cond_tracepoints)
8174 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8175 Make static.
8176 * skip.c (_initialize_step_skip): Declare.
8177 * symtab.c (skip_prologue_using_lineinfo): Make static.
8178 * tracepoint.c (delete_trace_state_variable)
8179 (trace_variable_command, delete_trace_variable_command)
8180 (get_uploaded_tsv, find_matching_tracepoint_location)
8181 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8182 Make static.
8183 * value.c (pack_unsigned_long): Make static.
8184 * varobj.c (varobj_ensure_python_env): Make static.
8185 * windows-tdep.c (_initialize_windows_tdep): Declare.
8186 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8187
8188 2012-03-01 Pedro Alves <palves@redhat.com>
8189
8190 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8191 gdbarch parameter.
8192 (linux_init_abi): Install it as has_shared_address_space gdbarch
8193 callback.
8194
8195 2012-03-01 Pedro Alves <palves@redhat.com>
8196
8197 * observer.c (observer_test_first_notification_function)
8198 (observer_test_second_notification_function)
8199 (observer_test_third_notification_function): Add declarations.
8200
8201 2012-03-01 Pedro Alves <palves@redhat.com>
8202
8203 * common/signals.c (default_target_signal_to_host)
8204 (default_target_signal_from_host): Move ...
8205 * arch-utils.c: ... here.
8206 * arch-utils.h (default_target_signal_to_host)
8207 (default_target_signal_from_host): Declare.
8208
8209 * common/signals.c (target_signal_from_command): Move ...
8210 * infrun.c: ... here.
8211 * inferior.h (target_signal_from_command): Declare.
8212 * target.h (target_signal_from_command)
8213 (default_target_signal_from_host, default_target_signal_to_host):
8214 Delete declarations.
8215
8216 * common/signals.c (_initialize_signals): Delete.
8217
8218 2012-03-01 Pedro Alves <palves@redhat.com>
8219
8220 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8221 both __cplusplus and !__cplusplus.
8222
8223 2012-03-01 Pedro Alves <palves@redhat.com>
8224
8225 * psymtab.c (find_and_open_source): Delete declaration.
8226 * source.c (find_and_open_source): Move comment ...
8227 * source.h (find_and_open_source): ... to this new declaration.
8228
8229 2012-03-01 Pedro Alves <palves@redhat.com>
8230
8231 * inline-frame.c: Include inline-frame.h.
8232
8233 2012-03-01 Pedro Alves <palves@redhat.com>
8234
8235 * tui/tui-data.c (set_gen_win_origin): Delete.
8236 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8237 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8238
8239 2012-03-01 Pedro Alves <palves@redhat.com>
8240
8241 * remote.c (encode_actions): Delete declaration.
8242 * tracepoint.c (encode_actions): Make extern.
8243 * tracepoint.h (encode_actions): Declare.
8244
8245 2012-03-01 Pedro Alves <palves@redhat.com>
8246
8247 * python/py-breakpoint.c: Include python.h.
8248 * python/py-continueevent.c (create_continue_event_object): Make
8249 static.
8250 * python/py-lazy-string.c (stpy_get_type): Make static.
8251 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8252 Make static.
8253 * python/py-utils.c (unicode_to_target_python_string): Make
8254 static.
8255 * python/py-value.c: Include python.h.
8256
8257 2012-03-01 Pedro Alves <palves@redhat.com>
8258
8259 * inferior.c (delete_threads_of_inferior): Delete.
8260
8261 2012-03-01 Pedro Alves <palves@redhat.com>
8262
8263 Import fallback definitions from glibc.
8264
8265 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8266 ps_prochandle): Forward declare.
8267 (ps_err_e): Use glibc's comments.
8268 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8269 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8270 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8271 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8272 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8273 (struct ps_prochandle): Adjust comment.
8274
8275 2012-03-01 Pedro Alves <palves@redhat.com>
8276
8277 * ada-lang.c (ada_modulus_from_name): Delete.
8278 * ada-lex.l (lexer_init): Make static.
8279
8280 2012-03-01 Pedro Alves <palves@redhat.com>
8281
8282 PR gdb/13767
8283
8284 * frame.c (read_frame_register_unsigned): New.
8285 * frame.h (read_frame_register_unsigned): Declare.
8286 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8287 Handle it.
8288 (print_i387_control_word): New parameter `control_p'. Handle it.
8289 (i387_print_float_info): Handle unavailable float registers.
8290
8291 2012-03-01 Keith Seitz <keiths@redhat.com>
8292
8293 * linespec.c (decode_line_2): Sort the list of methods
8294 alphabetically before presenting the user with a selection
8295 menu.
8296
8297 2012-03-01 Doug Evans <dje@google.com>
8298
8299 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8300 has_namespace_info.
8301 (dwarf2_read_abbrevs): Remove corresponding initialization.
8302
8303 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8304
8305 * NEWS: Mention new python command class gdb.COMMAND_USER.
8306 * cli/cli-cmds.c (show_user): Print error when used on a python
8307 command.
8308 (init_cli_cmds): Update documentation strings for "show user" and
8309 "set/show max-user-call-depth" to clarify that it does not apply to
8310 python commands.
8311 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8312 error check.
8313 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8314 gdb python api.
8315 * top.c (execute_command): Only execute a user-defined command as a
8316 legacy macro if c->user_commands is set.
8317
8318 2012-03-01 Tom Tromey <tromey@redhat.com>
8319
8320 * valprint.h (struct generic_val_print_decorations): New.
8321 (generic_val_print): Declare.
8322 * valprint.c (generic_val_print): New function.
8323 * p-valprint.c (p_decorations): New global.
8324 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8325 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8326 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8327 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8328 * m2-valprint.c (m2_decorations): New global.
8329 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8330 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8331 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8332 TYPE_CODE_ERROR>: Call generic_val_print.
8333 * f-valprint.c (f_decorations): New global.
8334 (f_val_print): Use print_function_pointer_address.
8335 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8336 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8337 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8338 generic_val_print.
8339 * c-valprint.c (c_decorations): New global.
8340 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8341 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8342 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8343 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8344 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8345 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8346 case.
8347
8348 2012-03-01 Tom Tromey <tromey@redhat.com>
8349
8350 * valprint.c (val_print): Update.
8351 * p-valprint (pascal_val_print): Return void.
8352 * p-lang.h (pascal_val_print): Return void.
8353 * m2-valprint.c (m2_val_print): Return void.
8354 * m2-lang.h (m2_val_print): Return void.
8355 * language.h (struct language_defn) <la_val_print>: Return void.
8356 * language.c (unk_lang_val_print): Return void.
8357 * jv-valprint.c (java_val_print): Return void.
8358 * jv-lang.h (java_val_print): Return void.
8359 * f-valprint.c (f_val_print): Return void.
8360 * f-lang.h (f_val_print): Return void.
8361 * d-valprint.c (d_val_print): Return void.
8362 (dynamic_array_type): Update.
8363 * d-lang.h (d_val_print): Return void.
8364 * c-valprint.c (c_val_print): Return void.
8365 * c-lang.h (c_val_print): Return void.
8366 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8367 void.
8368 * ada-lang.h (ada_val_print): Return void.
8369
8370 2012-03-01 Tom Tromey <tromey@redhat.com>
8371
8372 * value.h (val_print): Return void.
8373 * valprint.c (val_print): Return void.
8374
8375 2012-03-01 Tom Tromey <tromey@redhat.com>
8376
8377 * value.h (common_val_print): Return void.
8378 * valprint.c (common_val_print): Return void.
8379
8380 2012-03-01 Tom Tromey <tromey@redhat.com>
8381
8382 * value.h (value_print): Return void.
8383 * valprint.c (value_print): Return void.
8384 * p-valprint.c (pascal_value_print): Return void.
8385 * p-lang.h (pascal_value_print): Return void.
8386 * language.h (struct language_defn) <la_value_print>: Return
8387 void.
8388 * language.c (unk_lang_value_print): Return void.
8389 * jv-valprint.c (java_value_print): Return void.
8390 * jv-lang.h (java_value_print): Return void.
8391 * f-valprint.c (c_value_print): Don't declare.
8392 Include c-lang.h.
8393 * c-valprint.c (c_value_print): Return void.
8394 * c-lang.h (c_value_print): Return void.
8395 * ada-valprint.c (ada_value_print): Return void.
8396 * ada-lang.h (ada_value_print): Return void.
8397
8398 2012-03-01 Tom Tromey <tromey@redhat.com>
8399
8400 * value.c (value_primitive_field): Handle virtual base classes.
8401
8402 2012-03-01 Tom Tromey <tromey@redhat.com>
8403
8404 * gdbtypes.h (struct vbase): Remove.
8405
8406 2012-03-01 Tom Tromey <tromey@redhat.com>
8407
8408 * c-valprint.c (print_function_pointer_address): Move...
8409 * valprint.c: ... here. Make non-static.
8410 * m2-valprint.c (print_function_pointer_address): Remove.
8411 * valprint.h (print_function_pointer_address): Declare.
8412
8413 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8414
8415 * NEWS: Document the fact that one can provide a condition when
8416 creating an Ada exception catchpoint.
8417
8418 2012-03-01 Tom Tromey <tromey@redhat.com>
8419
8420 * valprint.c (val_print_type_code_flags): Fix placement of
8421 trailing brace.
8422
8423 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8424
8425 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8426 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8427 environment variable before calling update-copyright.
8428
8429 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8430
8431 * gnulib/extra/update-copyright: Update to the latest from
8432 gnulib's git repository.
8433 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8434 variable to 2 instead of 1.
8435
8436 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8437
8438 * varobj.c (c_value_of_variable): Remove dead code.
8439
8440 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8441
8442 * ada-lex.p (processId): Do not modify already encoded IDs.
8443 Update function documentation.
8444
8445 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8446
8447 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8448 "name" with "struct symbol *name_sym".
8449 * ada-exp.y (write_var_or_type): Update call to
8450 ada_find_renaming_symbol.
8451 "name" with "struct symbol *name_sym". Adjust Implementation
8452 accordingly. Adjust the function documentation.
8453
8454 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8455
8456 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8457 * ada-lang.c (ada_find_any_type): Add advance declaration.
8458 Make static. Replace ada_find_any_symbol by
8459 ada_find_any_type_symbol.
8460 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8461 Improve function description. Make static.
8462 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8463 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8464
8465 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8466
8467 * ada-lang.c (struct tag_args): Delete.
8468 (ada_get_tsd_type): Function body moved up in source file.
8469 (ada_tag_name_1, ada_tag_name_2): Delete.
8470 (ada_get_tsd_from_tag): New function.
8471 (ada_tag_name_from_tsd): New function.
8472 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8473 to determine the tag name.
8474
8475 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8476
8477 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8478 declaration.
8479 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8480 function.
8481
8482 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8483
8484 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8485
8486 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8487
8488 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8489 full searches.
8490
8491 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8492
8493 * ada-lang.c (constrained_packed_array_type): If there is a
8494 parallel XA type, use it to determine the array index type.
8495
8496 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8497
8498 * ada-valprint.c (ada_val_print_1): If our value is a reference
8499 to an array descriptor, dereference it before converting it
8500 to a simple array.
8501
8502 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8503
8504 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8505 creating fixed value.
8506 (ada_value_ind, ada_coerce_ref, assign_component)
8507 (ada_evaluate_subexp): Remove call to unwrap_value before
8508 call to ada_to_fixed_value.
8509
8510 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8511
8512 * ada-lang.c (to_fixed_array_type): Set result's type name.
8513
8514 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8515
8516 * ada-lang.c (catch_ada_exception_command_split): Add new
8517 argument cond_string. Add support for condition at end of
8518 "catch exception" commands.
8519 (ada_decode_exception_location): Add new argument cond_string.
8520 Update call to catch_ada_exception_command_split.
8521 (create_ada_exception_catchpoint): Add new argument cond_string.
8522 Set the breakpoint condition if needed.
8523 (catch_ada_exception_command): Update call to
8524 ada_decode_exception_location.
8525 (ada_decode_assert_location): Add function documentation.
8526 Add support for condition at end of "catch assert" command.
8527 (catch_assert_command): Update calls to ada_decode_assert_location
8528 and create_ada_exception_catchpoint.
8529
8530 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 Fix disp-step-syscall.exp: fork: single step over fork.
8533 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8534 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8535 comment, change parameters gdbarch and ptid to regcache. Remove
8536 parameter regcache, initialize gdbarch from regcache here.
8537 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8538 New functions.
8539 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8540 instead.
8541 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8542 'syscall'. Make the 'int' check more strict.
8543
8544 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8547 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8548 (i386_linux_intx80_sysenter_syscall_record): ... here.
8549 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8550 Use the renamed function name.
8551
8552 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8553
8554 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8555 * breakpoint.c (until_break_command): Likewise.
8556 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8557 * infcall.c (call_function_by_hand): Likewise.
8558 * infcmd.c (finish_forward): Likewise.
8559 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8560
8561 2012-02-28 Tristan Gingold <gingold@adacore.com>
8562
8563 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8564 avoid variable assignments inside condition.
8565
8566 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8567
8568 Fix static analysis issue found by cppcheck.
8569 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8570 uninitialized BUF for size 2.
8571
8572 2012-02-27 Chris Dearman <chris@mips.com>
8573 Nathan Froyd <froydnj@codesourcery.com>
8574 Maciej W. Rozycki <macro@codesourcery.com>
8575
8576 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8577 (mips16_instruction_has_delay_slot): Likewise.
8578 (mips_segment_boundary): Likewise.
8579 (mips_adjust_breakpoint_address): Likewise.
8580 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8581
8582 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8583 Maciej W. Rozycki <macro@codesourcery.com>
8584
8585 * infrun.c (handle_inferior_event): Don't proceed through
8586 shared library trampolines if stepping at the machine
8587 instruction level.
8588
8589 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8590
8591 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8592 too.
8593
8594 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8595
8596 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8597 (sh_stub_unwind_sniffer): New functions.
8598 (sh_stub_unwind): New variable.
8599 (sh_gdbarch_init): Wire everything.
8600
8601 2012-02-27 Pedro Alves <palves@redhat.com>
8602
8603 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8604 (linux_nat_post_attach_wait): Adjust to use
8605 linux_proc_pid_is_stopped.
8606 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8607 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8608 based on pid_is_stopped from both linux-nat.c and
8609 gdbserver/linux-low.c, and renamed.
8610
8611 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8612
8613 * remote.c (remote_watchpoint_addr_within_range): New function.
8614 (init_remote_ops): Use it.
8615
8616 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8617
8618 * target.h (target_watchpoint_addr_within_range): Document macro.
8619
8620 2012-02-24 Pedro Alves <palves@redhat.com>
8621
8622 * stack.c (set_last_displayed_sal): Issue internal_error instead
8623 of warning, and issue it after clearing the last displayed sal.
8624
8625 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8626 Pedro Alves <palves@redhat.com>
8627
8628 * breakpoint.c (until_break_command): Install breakpoints after
8629 all frame manipulations.
8630
8631 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8632
8633 * remote.c (remote_supports_cond_breakpoints): New forward
8634 declaration.
8635 (remote_add_target_side_condition): New function.
8636 (remote_insert_breakpoint): Add target-side breakpoint
8637 conditional if supported.
8638 (remote_insert_hw_breakpoint): Likewise.
8639 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8640 hook.
8641
8642 * target.c (update_current_target): Inherit
8643 to_supports_evaluation_of_breakpoint_conditions.
8644 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8645
8646 * target.h (struct target_ops)
8647 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8648 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8649
8650 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8651 (condition_evaluation_both, condition_evaluation_auto,
8652 condition_evaluation_host, condition_evaluation_target,
8653 condition_evaluation_enums, condition_evaluation_mode_1,
8654 condition_evaluation_mode): New static globals.
8655 (translate_condition_evaluation_mode): New function.
8656 (breakpoint_condition_evaluation_mode): New function.
8657 (gdb_evaluates_breakpoint_condition_p): New function.
8658 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8659 (mark_breakpoint_modified): New function.
8660 (mark_breakpoint_location_modified): New function.
8661 (set_condition_evaluation_mode): New function.
8662 (show_condition_evaluation_mode): New function.
8663 (bp_location_compare_addrs): New function.
8664 (get_first_location_gte_addr): New helper function.
8665 (set_breakpoint_condition): Free condition bytecode if locations
8666 has become unconditional. Call mark_breakpoint_modified (...).
8667 (condition_command): Call update_global_location_list (1) for
8668 breakpoints.
8669 (breakpoint_xfer_memory): Use is_breakpoint (...).
8670 (is_breakpoint): New function.
8671 (parse_cond_to_aexpr): New function.
8672 (build_target_condition_list): New function.
8673 (insert_bp_location): Handle target-side conditional
8674 breakpoints and call build_target_condition_list (...).
8675 (update_inserted_breakpoint_locations): New function.
8676 (insert_breakpoint_locations): Handle target-side conditional
8677 breakpoints.
8678 (bpstat_check_breakpoint_conditions): Add comment.
8679 (bp_condition_evaluator): New function.
8680 (bp_location_condition_evaluator): New function.
8681 (print_breakpoint_location): Print information on where the condition
8682 will be evaluated.
8683 (print_one_breakpoint_location): Likewise.
8684 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8685 breakpoint location.
8686 (force_breakpoint_reinsertion): New functions.
8687 (update_global_location_list): Handle target-side breakpoint
8688 conditions.
8689 Reinsert locations that are already inserted if conditions have
8690 changed.
8691 (bp_location_dtor): Free agent expression bytecode.
8692 (disable_breakpoint): Call mark_breakpoint_modified (...).
8693 Call update_global_location_list (...) with parameter 1 for breakpoints.
8694 (disable_command): Call mark_breakpoint_location_modified (...).
8695 Call update_global_location_list (...) with parameter 1 for breakpoints.
8696 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8697 (enable_command): mark_breakpoint_location_modified (...).
8698 (_initialize_breakpoint): Update documentation and add
8699 condition-evaluation breakpoint subcommand.
8700
8701 * breakpoint.h: Include ax.h.
8702 (condition_list): New data structure.
8703 (condition_status): New enum.
8704 (bp_target_info) <cond_list>: New field.
8705 (bp_location) <condition_changed, cond_bytecode>: New fields.
8706 (is_breakpoint): New prototype.
8707
8708 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8709
8710 * remote.c (remote_state) <cond_breakpoints>: New field.
8711 (PACKET_ConditionalBreakpoints): New enum.
8712 (remote_cond_breakpoint_feature): New function.
8713 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8714 (remote_supports_cond_breakpoints): New function.
8715 (_initialize_remote): Add new packet configuration for
8716 target-side conditional breakpoints.
8717
8718 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8719
8720 * NEWS: Mention target-side conditional breakpoint support,
8721 new condition-evaluation breakpoint subcommand and remote
8722 packet extensions.
8723
8724 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8725
8726 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8727 number.
8728
8729 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8730
8731 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8732 (after_prologue): Remove.
8733
8734 2012-02-23 Tom Tromey <tromey@redhat.com>
8735
8736 * jv-valprint.c (java_val_print): Remove dead code.
8737
8738 2012-02-23 Tristan Gingold <gingold@adacore.com>
8739
8740 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8741 known_tasks_element and known_tasks_length fields.
8742 (read_known_tasks_array): Change argument type. Use pointer type
8743 and number of elements from DATA. Adjust.
8744 (read_known_tasks_list): Likewise.
8745 (get_known_tasks_addr): Remove.
8746 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8747 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8748 type and array length. Merge former get_known_tasks_addr code.
8749
8750 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8751
8752 PR backtrace/13716
8753 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8754 it after set_momentary_breakpoint.
8755
8756 2012-02-22 Sterling Augustine <saugustine@google.com>
8757
8758 PR 13689:
8759 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8760
8761 2012-02-22 Gary Benson <gbenson@redhat.com>
8762
8763 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8764 (find_slot_in_mapped_hash): Likewise.
8765
8766 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 PR build/13638
8769 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8770 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8771 * configure: Regenerate.
8772
8773 2012-02-21 Tristan Gingold <gingold@adacore.com>
8774 Pedro Alves <palves@redhat.com>
8775
8776 * ia64-tdep.c: Do not include libunwind-ia64.h.
8777 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8778 Include libunwind-ia64.h instead of libunwind.h.
8779 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8780 for libunwind.h existence.
8781 * configure, config.in: Regenerate.
8782
8783 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8784
8785 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8786 instead of value_rtti_target_type.
8787 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8788 instead of value_rtti_target_type.
8789 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8790 value_rtti_target_type.
8791 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8792 (value_rtti_target_type): Rename to ...
8793 (value_rtti_indirect_type): ... here and make it indirect. Update
8794 function comment.
8795 * value.c (readjust_indirect_value_type): New function.
8796 (coerce_ref): Support for enclosing type setting for references
8797 with readjust_indirect_value_type.
8798 * value.h (readjust_value_type): New declaration.
8799 (value_rtti_target_type): Rename to ...
8800 (value_rtti_indirect_type): ... here.
8801
8802 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8803
8804 * MAINTAINERS (Write After Approval): Add myself to the list.
8805
8806 2012-02-20 Doug Evans <dje@google.com>
8807
8808 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8809 Rename objfile_p_char parameter to objfilep.
8810 (build_objfile_section_table): Result is now void. All callers
8811 updated.
8812 * objfiles.h (struct objfile): Tweak comments, whitespace.
8813 (build_objfile_section_table): Update.
8814
8815 * elfread.c (elf_symfile_segments): Fix warning text.
8816
8817 2012-02-20 Tom Tromey <tromey@redhat.com>
8818
8819 PR gdb/13498:
8820 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8821 particular set of file names once.
8822 (dw2_map_symbol_filenames): Likewise.
8823
8824 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8825
8826 Code cleanup.
8827 * main.c (write_files): Remove the declaration.
8828 (external_editor_command): Move the declaration ...
8829 [GDBTK] (external_editor_command): ... here. Fix the comment.
8830
8831 2012-02-20 Tom Tromey <tromey@redhat.com>
8832
8833 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8834 extraneous block.
8835
8836 2012-02-20 Tristan Gingold <gingold@adacore.com>
8837
8838 * darwin-nat.h (enum darwin_msg_state): Add comments.
8839
8840 2012-02-20 Tristan Gingold <gingold@adacore.com>
8841
8842 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8843 value.
8844
8845 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8846
8847 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8848 between function description and implementation.
8849
8850 2012-02-17 Tom Tromey <tromey@redhat.com>
8851
8852 PR python/12070:
8853 * python/py-event.c (event_object_getset): New global.
8854 (event_object_type): Reference it.
8855 * python/py-type.c (field_object_getset): New global.
8856 (field_object_type): Reference it.
8857 * python/python-internal.h (gdb_py_generic_dict): Declare.
8858 * python/py-utils.c (gdb_py_generic_dict): New function.
8859
8860 2012-02-17 Tristan Gingold <gingold@adacore.com>
8861
8862 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8863
8864 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8865
8866 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8867 TYPE_CALLING_CONVENTION annotation.
8868
8869 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8870
8871 * MAINTAINERS: Add rx to target ISA section.
8872 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8873 (ALLDEPFILES): Add rx-tdep.c.
8874
8875 2012-02-16 Tom Tromey <tromey@redhat.com>
8876
8877 * symfile.c (symbol_file_add_main_1): Use inferior's
8878 symfile_flags.
8879 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8880 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8881 inferior.
8882 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8883 inferior.
8884 (follow_exec): Use inferior's symfile_flags.
8885 * inferior.h (struct inferior) <symfile_flags>: New field.
8886
8887 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8888
8889 PR gdb/9734:
8890 * remote-sim.c (gdbsim_create_inferior): Call error() when
8891 sim_create_inferior() fails.
8892
8893 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8894
8895 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8896
8897 2012-02-16 Tom Tromey <tromey@redhat.com>
8898
8899 PR c++/13653:
8900 * thread.c (struct current_thread_cleanup) <was_removable>: New
8901 field.
8902 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8903 (make_cleanup_restore_current_thread): Initialize new field.
8904
8905 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8906
8907 * MAINTAINERS: Add rl78 to target ISA section.
8908 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8909 (ALLDEPFILES): Add rl78-tdep.c.
8910 * NEWS: Mention rl78 as a new target.
8911
8912 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8913
8914 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8915 data.
8916 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8917
8918 2012-02-15 Tom Tromey <tromey@redhat.com>
8919
8920 PR gdb/12659:
8921 * infcmd.c (registers_info): Print just the current register's
8922 name.
8923
8924 2012-02-15 Tom Tromey <tromey@redhat.com>
8925
8926 * python/py-symbol.c (sympy_value): Use _().
8927
8928 2012-02-15 Pedro Alves <palves@redhat.com>
8929
8930 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8931 output to be like native targets'.
8932 (remote_pid_to_str): Special case the null ptid.
8933
8934 2012-02-14 Stan Shebs <stan@codesourcery.com>
8935
8936 * NEWS: Mention enable count command.
8937 * breakpoint.h (struct breakpoint): New field enable_count.
8938 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8939 (enable_breakpoint): Add arg to call.
8940 (struct disp_data): New struct.
8941 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8942 (do_map_enable_once_breakpoint): Create a struct and pass it.
8943 (do_map_enable_delete_breakpoint): Ditto.
8944 (do_map_enable_count_breakpoint): New function.
8945 (enable_count_command): New function.
8946 (bpstat_stop_status): Decrement enable_count.
8947 (print_one_breakpoint_location): Report enable count.
8948 (_initialize_breakpoint): Add enable count command.
8949
8950 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8951
8952 * rl78-tdep.c (reggroups.h): Include.
8953 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8954 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8955 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8956 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8957 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8958 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8959 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8960 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8961 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8962 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8963 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8964 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8965 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8966 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8967 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8968 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8969 beginning of register list.
8970 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8971 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8972 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8973 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8974 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8975 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8976 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8977 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8978 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8979 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8980 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8981 the pseudo registers. Rearrange other pseudo registers too so
8982 that the bank registers appear at the end.
8983 (rl78_register_type): Account for the fact that the byte sized
8984 bank registers are now pseudo-registers.
8985 (rl78_register_name): Rearrange the register name array. Make
8986 initial set of raw banked registers inaccessible.
8987 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8988 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8989 case for copying bytes back and forth between raw and pseudo
8990 versions of the banked registers. Update other cases to reflect
8991 the changed names.
8992 (rl78_return_value): Update to account for changed names of
8993 raw registers.
8994 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8995 rl78_register_sim_regno().
8996
8997 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8998
8999 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9000 the name parameter being passed to find_pc_partial_function().
9001
9002 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9003
9004 * MAINTAINERS: Step down from being ia64 target maintainer.
9005
9006 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9007
9008 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9009 compilation warning.
9010
9011 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9012
9013 Fix crash on loaded shlibs without loaded exec_bfd.
9014 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9015 (set_section_command): Replace exec_bfd by p->bfd.
9016
9017 2012-02-10 Tom Tromey <tromey@redhat.com>
9018
9019 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9020 when we have a C++ qualified name.
9021
9022 2012-02-10 Pedro Alves <palves@redhat.com>
9023
9024 * inferior.c (inferior_pid_to_str): New.
9025 (print_inferior, inferior_command): Use it.
9026
9027 2012-02-10 Pedro Alves <palves@redhat.com>
9028
9029 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9030 the test CFLAGS.
9031 * configure: Regenerate.
9032
9033 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9034
9035 * linespec.c (decode_line_internal): Fix comment correctness.
9036
9037 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9038
9039 PR gdb/12953
9040 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9041 * amd64bsd-nat.c: Add support for debug registers (adapted from
9042 i386bsd-nat.c).
9043 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9044 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9045 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9046 (amd64bsd_dr_get_control): New functions.
9047 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9048 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9049 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9050 watchpoints initialization.
9051 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9052
9053 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9054
9055 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9056 flds_bnds.fields.
9057 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9058
9059 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9060
9061 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9062
9063 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9064
9065 * language.h (symbol_name_cmp_ftype): Renames
9066 symbol_name_match_p_ftype.
9067 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9068 la_get_symbol_name_match_p.
9069 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9070 ada_get_symbol_name_match_p. Update comment.
9071 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9072 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9073 Renames symbol_name_match_p. Update field type.
9074 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9075 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9076 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9077 "la_get_symbol_name_cmp" in comments.
9078 * language.c: Likewise.
9079
9080 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9081
9082 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9083 %eflags offset.
9084 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9085 (amd64_sol2_gregset32_reg_offs): Likewise.
9086
9087 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9088
9089 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9090 of the returned BFD is allocated by GDB.
9091
9092 2012-02-07 Tom Tromey <tromey@redhat.com>
9093
9094 PR python/12027:
9095 * python/python-internal.h (frame_object_type): Declare.
9096 * python/py-symbol.c (sympy_needs_frame): New function.
9097 (sympy_value): New function.
9098 (symbol_object_getset): Add "needs_frame".
9099 (symbol_object_methods): Add "value".
9100 * python/py-frame.c (frame_object_type): No longer static.
9101
9102 2012-02-07 Tom Tromey <tromey@redhat.com>
9103
9104 PR python/13599:
9105 * python/py-symbol.c (sympy_line): New function.
9106 (symbol_object_getset): Add "line".
9107
9108 2012-02-07 Tom Tromey <tromey@redhat.com>
9109
9110 * charset.c (find_charset_names): Check 'in' against NULL.
9111
9112 2012-02-06 Doug Evans <dje@google.com>
9113
9114 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9115 and fields.name members from char * to const char *. All uses updated.
9116 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9117 from char * to const char *. All uses updated.
9118 (type_name_no_tag): Update.
9119 (lookup_unsigned_typename, lookup_signed_typename): Update.
9120 * gdbtypes.c (type_name_no_tag): Change result type
9121 from char * to const char *. All callers updated.
9122 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9123 name parameter from char * to const char *.
9124 * symtab.h (struct cplus_specific): Change type of demangled_name
9125 member from char * to const char *. All uses updated.
9126 (struct general_symbol_info): Change type of name and
9127 mangled_lang.demangled_name members from char * to const char *.
9128 All uses updated.
9129 (symbol_get_demangled_name, symbol_natural_name): Update.
9130 (symbol_demangled_name, symbol_search_name): Update.
9131 * symtab.c (symbol_get_demangled_name): Change result type
9132 from char * to const char *. All callers updated.
9133 (symbol_natural_name, symbol_demangled_name): Ditto.
9134 (symbol_search_name): Ditto.
9135 (completion_list_add_name): Change type of symname,sym_text,
9136 text,word parameters from char * to const char *.
9137 (completion_list_objc_symbol): Change type of sym_text,
9138 text,word parameters from char * to const char *.
9139 * ada-lang.c (find_struct_field): Change type of name parameter
9140 from char * to const char *.
9141 (encoded_ordered_before): Similarly for N0,N1 parameters.
9142 (old_renaming_is_invisible): Similarly for function_name parameter.
9143 (ada_type_name): Change result type from char * to const char *.
9144 All callers updated.
9145 * ada-lang.h (ada_type_name): Update.
9146 * buildsym.c (hashname): Change type of name parameter
9147 from char * to const char *.
9148 * buildsym.h (hashname): Update.
9149 * dbxread.c (end_psymtab): Change type of include_list parameter
9150 from char ** to const char **.
9151 * dwarf2read.c (determine_prefix): Change result type
9152 from char * to const char *. All callers updated.
9153 * f-lang.c (find_common_for_function): Change type of name, funcname
9154 parameters from char * to const char *.
9155 * f-lang.c (find_common_for_function): Update.
9156 * f-valprint.c (list_all_visible_commons): Change type of funcname
9157 parameters from char * to const char *.
9158 * gdbarch.sh (static_transform_name): Change type of name parameter
9159 and result from char * to const char *.
9160 * gdbarch.c: Regenerate.
9161 * gdbarch.h: Regenerate.
9162 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9163 of name parameter from char * to const char *.
9164 * jv-lang.c (java_primitive_type_from_name): Ditto.
9165 (java_demangled_signature_length): Similarly for signature parameter.
9166 (java_demangled_signature_copy): Ditto.
9167 (java_demangle_type_signature): Ditto.
9168 * jv-lang.h (java_primitive_type_from_name): Update.
9169 (java_demangle_type_signature): Update.
9170 * objc-lang.c (specialcmp): Change type of a,b parameters
9171 from char * to const char *.
9172 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9173 from char * to const char *. All callers updated.
9174 * p-lang.h (is_pascal_string_type): Update.
9175 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9176 of name parameter from char * to const char *.
9177 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9178 * utils.c (fprintf_symbol_filtered): Ditto.
9179 * defs.h (fprintf_symbol_filtered): Update.
9180 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9181 * stabsread.h (end_psymtab): Update.
9182 * stack.c (find_frame_funname): Change type of funname parameter
9183 from char ** to const char **.
9184 * stack.h (find_frame_funname): Update.
9185 * typeprint.c (type_print): Change type of varstring parameter
9186 from char * to const char *.
9187 * value.h (type_print): Update.
9188 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9189 from char * to const char *. All callers updated.
9190 (xcoff_end_psymtab): Change type of include_list parameter
9191 from char ** to const char **. All callers updated.
9192 (swap_sym): Similarly for name parameter. All callers updated.
9193 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9194 Use xstrdup.
9195 (process_coff_symbol): Use xstrdup.
9196 * stabsread.c (stabs_method_name_from_physname): Renamed from
9197 update_method_name_from_physname. Change result type from void
9198 to char *. All callers updated.
9199 (read_member_functions): In has_destructor case, store name in objfile
9200 obstack instead of malloc space. In !has_stub case, fix mem leak.
9201
9202 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9203
9204 * configure: Rebuild.
9205 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9206 LDFLAGS.
9207
9208 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9209
9210 * configure.tgt (rl78-*-elf): New target.
9211 * rl78-tdep.c: New file.
9212
9213 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9214
9215 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9216 and continue the loop. Add QUIT statement.
9217
9218 2012-02-03 Tom Tromey <tromey@redhat.com>
9219
9220 PR gdb/13596:
9221 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9222 bfd_lookup_symbol_from_symtab.
9223 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9224 gdb_bfd_lookup_symbol_from_symtab.
9225
9226 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9227
9228 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9229 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9230 symbol. Add assertion that sym2 is never NULL.
9231
9232 2012-02-02 Doug Evans <dje@google.com>
9233
9234 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9235 "name" parameter to const char ** from char **. All callers updated.
9236 (find_pc_partial_function): Ditto.
9237 (cache_pc_function_name): Change type to const char * from char *.
9238 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9239 (find_pc_partial_function): Update.
9240 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9241 type of "name" parameter to const char * from char *.
9242 All uses updated.
9243 * arch-utils.c (generic_in_solib_return_trampoline): Change
9244 type of "name" parameter to const char * from char *.
9245 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9246 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9247 type of "name" parameter to const char * from char *.
9248 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9249 * gdbarch.c: Regenerate.
9250 * gdbarch.h: Regenerate.
9251 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9252 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9253 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9254 type of "name" parameter to const char * from char *.
9255 * skip.c (skip_function_pc): Ditto.
9256 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9257 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9258 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9259 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9260 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9261 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9262 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9263 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9264 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9265
9266 2012-02-02 Pedro Alves <palves@redhat.com>
9267
9268 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9269 the current inferior has no execution. Make sure the current
9270 remote process matches gdb's current inferior.
9271
9272 2012-02-02 Tom Tromey <tromey@redhat.com>
9273
9274 PR gdb/13405:
9275 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9276 read-only memory.
9277
9278 2012-02-02 Tom Tromey <tromey@redhat.com>
9279
9280 PR gdb/9307:
9281 * symtab.c (lookup_language_this): Set block_found.
9282
9283 2012-02-01 Tom Tromey <tromey@redhat.com>
9284
9285 PR gdb/13431:
9286 * jit.c (struct jit_inferior_data): Rewrite.
9287 (struct jit_objfile_data): New.
9288 (get_jit_objfile_data): New function.
9289 (add_objfile_entry): Update.
9290 (jit_read_descriptor): Return int. Replace descriptor_addr
9291 argument with inf_data. Update. Don't call error.
9292 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9293 descriptor here.
9294 (jit_inferior_init): Don't look up descriptor. Don't call error.
9295 (jit_reset_inferior_data_and_breakpoints)
9296 (jit_inferior_created_observer): Remove.
9297 (jit_inferior_exit_hook): Update.
9298 (jit_executable_changed_observer): Remove.
9299 (jit_event_handler): Update.
9300 (free_objfile_data): Reset inferior data if needed.
9301 (_initialize_jit): Update.
9302
9303 2012-02-01 Tom Tromey <tromey@redhat.com>
9304
9305 * jit.c (bfd_open_from_target_memory): Move higher in file.
9306
9307 2012-02-01 Tristan Gingold <gingold@adacore.com>
9308
9309 * libunwind-frame.c (libunwind_load): Display message if dlopen
9310 failed.
9311
9312 2012-02-01 Gary Benson <gbenson@redhat.com>
9313
9314 * symtab.h (symbol_found_callback_ftype): New typedef.
9315 (iterate_over_symbols): Use the above.
9316 * symtab.c (iterate_over_symbols): Likewise.
9317 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9318 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9319 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9320 (iterate_name_matcher): Document return values.
9321 (collect_one_symbol): Likewise.
9322 (collect_function_symbols): Likewise.
9323 (collect_symbols): Likewise.
9324
9325 2012-02-01 Tom Tromey <tromey@redhat.com>
9326
9327 * ada-lang.c (resolve_subexp): Update.
9328 (ada_lookup_symbol_list): Add 'full_search' argument.
9329 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9330 ada_lookup_symbol_list.
9331 (ada_lookup_encoded_symbol): Update.
9332 (get_var_value): Update.
9333 * ada-exp.y (block_lookup): Update.
9334 (write_var_or_type): Update.
9335 (write_name_assoc): Update.
9336 * ada-lang.h (ada_lookup_symbol_list): Update.
9337
9338 2012-01-31 Tom Tromey <tromey@redhat.com>
9339
9340 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9341 comment.
9342
9343 2012-01-31 Doug Evans <dje@google.com>
9344
9345 * symtab.h: Remove outdated comment.
9346 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9347
9348 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9349
9350 Fix build error in Darwin port.
9351 * i386-darwin-nat.c: Include i386-nat.h.
9352
9353 2012-01-30 Tom Tromey <tromey@redhat.com>
9354
9355 PR breakpoints/13568:
9356 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9357 argument. Check for recursive includes.
9358 (dwarf_decode_macros): Create an include hash.
9359
9360 2012-01-30 Michael Eager <eager@eagercon.com>
9361
9362 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9363 * ppc-linux-tdep.c: Include glibc-tdep.h.
9364 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9365 (powerpc_linux_in_plt_stub): New function.
9366 (powerpc_linux_in_dynsym_resolve_code): New function.
9367 (ppc_skip_trampoline_code): New function.
9368 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9369 Use glibc_skip_solib_resolver.
9370
9371 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9372
9373 Code cleanup: Make 1440 bytes of data segment read-only.
9374 * arch-utils.c (endian_enum): Make it const char *const [].
9375 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9376 Likewise.
9377 * breakpoint.c (always_inserted_enums): Likewise.
9378 * cli/cli-cmds.c (script_ext_enums): Likewise.
9379 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9380 enumlist parameter const char *const *.
9381 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9382 const char *const *.
9383 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9384 parameter const char *const *.
9385 * cris-tdep.c (cris_modes): Make it const char *const [].
9386 * filesystem.c (target_file_system_kinds): Likewise.
9387 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9388 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9389 (can_use_displaced_stepping_enum, scheduler_enums)
9390 (exec_direction_names): Likewise.
9391 * language.c (_initialize_language): Make the type_or_range_names and
9392 case_sensitive_names variables const char *const [].
9393 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9394 * python/python.c (python_excp_enums): Likewise.
9395 * remote.c (interrupt_sequence_modes): Likewise.
9396 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9397 * serial.c (logbase_enums): Likewise.
9398 * sh-tdep.c (sh_cc_enum): Likewise.
9399 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9400 Likewise.
9401 * symtab.c (multiple_symbols_modes): Likewise.
9402 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9403 Likewise.
9404 * utils.c (internal_problem_modes): Likewise.
9405
9406 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9409 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9410 result.
9411
9412 2012-01-27 Doug Evans <dje@google.com>
9413
9414 * configure.ac (with_python): Fix absolute path handling for win32.
9415 * configure: Regenerate.
9416
9417 2012-01-26 Doug Evans <dje@google.com>
9418
9419 * symtab.c: Whitespace cleanup, no code changes.
9420
9421 * symtab.c (lookup_symbol_in_language): Improve comment.
9422 (lookup_symbol_aux): Fix comment.
9423
9424 * psymtab.c (add_psymbol_to_list): Result is now "void".
9425 * psympriv.h (add_psymbol_to_list): Update.
9426
9427 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9428
9429 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9430
9431 Do not open script filenames twice.
9432 * cli/cli-cmds.c (source_script_from_stream): Pass to
9433 source_python_script also STREAM.
9434 * python/py-auto-load.c (source_section_scripts): Pass to
9435 source_python_script_for_objfile also STREAM.
9436 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9437 also INPUT.
9438 * python/python-internal.h (source_python_script_for_objfile): New
9439 parameter file, rename parameter file to filename.
9440 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9441 instead if !_WIN32. Update the function comment.
9442 (source_python_script, source_python_script_for_objfile)
9443 (source_python_script): New parameter file, rename parameter file to
9444 filename. Pass FILENAME to python_run_simple_file.
9445 * python/python.h (source_python_script): New parameter file, rename
9446 parameter file to filename.
9447
9448 2012-01-26 Pedro Alves <palves@redhat.com>
9449
9450 * corelow.c (core_has_fake_pid): Delete.
9451 (core_close): Delete references to `core_has_fake_pid'.
9452 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9453 (core_open): Delete references to `core_has_fake_pid'.
9454 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9455 the removed global.
9456
9457 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9458
9459 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9460 Remove language parameter from name_matcher. Adjust the comment.
9461 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9462 Remove language parameter.
9463 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9464 * linespec.c (iterate_name_matcher): Likewise.
9465 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9466 name_matcher. Adjust call accordingly.
9467 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9468 (maintenance_check_symtabs): Adjust type of parameter "fun".
9469 * psymtab.h (maintenance_check_symtabs): Likewise.
9470
9471 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9472
9473 * language.h (symbol_name_match_p_ftype): New typedef.
9474 (struct language_defn): Replace field la_symbol_name_compare
9475 by la_get_symbol_name_match_p.
9476 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9477 (ada_language_defn): Use it.
9478 * linespec.c (struct symbol_matcher_data): New type.
9479 (iterate_name_matcher): Rewrite.
9480 (iterate_over_all_matching_symtabs): Pass a pointer to
9481 a symbol_matcher_data struct to expand_symtabs_matching
9482 instead of just the lookup name.
9483 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9484 opencl-lang.c, p-lang.c, language.c: Delete field
9485 la_symbol_name_compare, and replace by NULL for new field
9486 la_get_symbol_name_match_p.
9487 * symfile.h (struct quick_symbol_functions): Update comment.
9488
9489 2012-01-25 Tom Tromey <tromey@redhat.com>
9490
9491 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9492 dereferencing.
9493
9494 2012-01-24 Tom Tromey <tromey@redhat.com>
9495
9496 PR symtab/12406:
9497 * solib.c (update_solib_list): Update the program space's
9498 added_solibs and deleted_solibs fields.
9499 * progspace.h (struct program_space) <added_solibs,
9500 deleted_solibs>: New fields.
9501 (clear_program_space_solib_cache): Declare.
9502 * progspace.c (release_program_space): Call
9503 clear_program_space_solib_cache.
9504 (clear_program_space_solib_cache): New function.
9505 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9506 bpstat_stop_status. Use handle_solib_event.
9507 * breakpoint.c: Include gdb_regex.h.
9508 (print_solib_event): New function.
9509 (bpstat_print): Use print_solib_event.
9510 (bpstat_stop_status): Add special case for bp_shlib_event.
9511 (handle_solib_event): New function.
9512 (bpstat_what): Use handle_solib_event.
9513 (struct solib_catchpoint): New.
9514 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9515 (breakpoint_hit_catch_solib, check_status_catch_solib)
9516 (print_it_catch_solib, print_one_catch_solib)
9517 (print_mention_catch_solib, print_recreate_catch_solib): New
9518 functions.
9519 (catch_solib_breakpoint_ops): New global.
9520 (catch_load_or_unload, catch_load_command_1)
9521 (catch_unload_command_1): New functions.
9522 (internal_bkpt_check_status): Add special case for
9523 bp_shlib_event.
9524 (internal_bkpt_print_it): Use print_solib_event.
9525 (initialize_breakpoint_ops): Initialize
9526 catch_solib_breakpoint_ops.
9527 (_initialize_breakpoint): Register "catch load" and "catch
9528 unload".
9529 * breakpoint.h (handle_solib_event): Declare.
9530 * NEWS: Add entry for "catch load" and "catch unload".
9531
9532 2012-01-24 Tom Tromey <tromey@redhat.com>
9533
9534 * ada-lang.c: Include gdb_vecs.h.
9535 * charset.c: Include gdb_vecs.h.
9536 * tracepoint.h: Include gdb_vecs.h.
9537 * gdb_vecs.h: New file.
9538
9539 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9540
9541 * breakpoint.c (breakpoint_hit_catch_fork)
9542 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9543 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9544 * infrun.c (inferior_has_forked, inferior_has_vforked)
9545 (inferior_has_execd, inferior_has_called_syscall): Delete.
9546 (handle_syscall_event): Get syscall_number from the execution
9547 control state's wait status.
9548 (wait_for_inferior): Don't clear syscall_number.
9549
9550 2012-01-24 Pedro Alves <palves@redhat.com>
9551
9552 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9553 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9554 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9555 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9556 `ws' parameter.
9557 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9558 false for events other than TARGET_SIGNAL_TRAP.
9559 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9560 Add `ws' parameter.
9561 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9562 events other than TARGET_SIGNAL_TRAP.
9563 (tracepoint_breakpoint_hit): Add `ws' parameter.
9564 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9565 parameter.
9566 (bpstat_stop_status): Same.
9567 (pc_at_non_inline_function): Same.
9568 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9569 to pass the current event's waitstatus to bpstat_stop_status
9570 and pc_at_non_inline_function.
9571
9572 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9573
9574 Code cleanup.
9575 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9576 Update the function comment for it.
9577 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9578 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9579 for STREAM.
9580
9581 2012-01-24 Pedro Alves <palves@redhat.com>
9582
9583 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9584 outside `bs->stop' block.
9585 (bpstat_what): Rework bp_shlib_event handling.
9586 (internal_bkpt_check_status): If the breakpoint is a
9587 bp_shlib_event, then set bs->stop and bs->print if
9588 stop_on_solib_events is set.
9589
9590 2012-01-24 Gary Benson <gbenson@redhat.com>
9591
9592 Delete #if 0'd out code.
9593 * stack.c (print_frame_label_vars): Remove.
9594 (catch_info): Likewise.
9595 (_initialize_stack): Remove "info catch" command.
9596 * NEWS: Mention the above.
9597
9598 2012-01-24 Pedro Alves <palves@redhat.com>
9599
9600 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9601 it.
9602 (remote_notice_new_inferior): If the remote end doesn't support
9603 the multiprocess extensions, then the PID is fake.
9604 (add_current_inferior_and_thread): New.
9605 (remote_start_remote): Use it.
9606 (extended_remote_attach_1): Adjust.
9607 (extended_remote_create_inferior_1): Use
9608 add_current_inferior_and_thread.
9609
9610 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9611
9612 Fix watchpoints to be specific for each inferior.
9613 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9614 current_program_space.
9615 * i386-nat.c (i386_inferior_data_cleanup): New.
9616 (i386_inferior_data_get): Replace variable inf_data_local by an
9617 inferior_data call.
9618 (i386_use_watchpoints): Initialize i386_inferior_data.
9619 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9620 specific iterate_over_lwps.
9621
9622 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9623
9624 Fix watchpoints across inferior fork.
9625 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9626 comment for linux_nat_iterate_watchpoint_lwps.
9627 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9628 linux_nat_iterate_watchpoint_lwps.
9629 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9630 * i386-linux-nat.c (update_debug_registers_callback): Update the
9631 comment for linux_nat_iterate_watchpoint_lwps.
9632 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9633 linux_nat_iterate_watchpoint_lwps.
9634 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9635 * i386-nat.c: Include inferior.h.
9636 (dr_mirror): Remove.
9637 (i386_inferior_data, struct i386_inferior_data)
9638 (i386_inferior_data_get): New.
9639 (i386_debug_reg_state): Use i386_inferior_data_get.
9640 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9641 (i386_insert_watchpoint, i386_remove_watchpoint)
9642 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9643 (i386_remove_hw_breakpoint): New variable state, use
9644 i386_debug_reg_state instead of DR_MIRROR.
9645 * linux-nat.c (delete_lwp): New declaration.
9646 (num_lwps): Move here from downwards.
9647 (delete_lwp_cleanup): New.
9648 (linux_child_follow_fork): Create new child_lp, call
9649 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9650 PTRACE_DETACH.
9651 (num_lwps): Move upwards.
9652 (linux_nat_iterate_watchpoint_lwps): New.
9653 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9654 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9655
9656 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9657
9658 GDB 7.4 released.
9659
9660 2012-01-23 Pedro Alves <palves@redhat.com>
9661
9662 * top.c (caution): Rename to ...
9663 (confirm): ... this.
9664 (show_caution): Rename to ...
9665 (show_confirm): ... this.
9666 (quit_cover): Adjust.
9667 (init_main): Adjust.
9668 * top.h (caution): Rename to ...
9669 (confirm): ... this.
9670 * utils.c (internal_vproblem, defaulted_query): Adjust.
9671
9672 2012-01-23 Pedro Alves <palves@redhat.com>
9673
9674 * top.c (caution): Update comment.
9675 (execute_command): Don't consider the current value of `caution'.
9676
9677 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9678
9679 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9680
9681 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9682
9683 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9684 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9685 * target.c (target_fileio_pwrite): Remove buffer address from
9686 debug output.
9687 (target_fileio_pread): Likewise.
9688
9689 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9690
9691 * NEWS: Document remote "info proc" and "generate-core-file".
9692
9693 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9694
9695 * gdbarch.sh (find_memory_regions): New callback.
9696 * gdbarch.c, gdbarch.h: Regenerate.
9697
9698 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9699 callback before falling back to target method.
9700
9701 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9702 (linux_target_install_ops): No longer install it.
9703
9704 * linux-tdep.c (linux_find_memory_regions): New function.
9705 (linux_init_abi): Install it.
9706
9707 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9708
9709 * gdbarch.sh (make_corefile_notes): New architecture callback.
9710 * gdbarch.c: Regenerate.
9711 * gdbarch.h: Likewise.
9712
9713 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9714 before target_make_corefile_notes. If NULL is returned, the
9715 target does not support core file generation.
9716
9717 * linux-nat.c: Include "linux-tdep.h".
9718 (find_signalled_thread, find_stop_signal): Remove.
9719 (linux_nat_do_thread_registers): Likewise.
9720 (struct linux_nat_corefile_thread_data): Likewise.
9721 (linux_nat_corefile_thread_callback): Likewise.
9722 (iterate_over_spus): Likewise.
9723 (struct linux_spu_corefile_data): Likewise.
9724 (linux_spu_corefile_callback): Likewise.
9725 (linux_spu_make_corefile_notes): Likewise.
9726 (linux_nat_collect_thread_registers): New function.
9727 (linux_nat_make_corefile_notes): Replace contents by call to
9728 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9729 as native-only callback.
9730
9731 * linux-tdep.h: Include "bfd.h".
9732 (struct regcache): Add forward declaration.
9733 (linux_collect_thread_registers_ftype): New typedef.
9734 (linux_make_corefile_notes): Add prototype.
9735 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9736 "regset.h", and "elf-bfd.h".
9737 (find_signalled_thread, find_stop_signal): New functions.
9738 (linux_spu_make_corefile_notes): Likewise.
9739 (linux_collect_thread_registers): Likewise.
9740 (struct linux_corefile_thread_data): New data structure.
9741 (linux_corefile_thread_callback): New funcion.
9742 (linux_make_corefile_notes): Likewise.
9743 (linux_make_corefile_notes_1): Likewise.
9744 (linux_init_abi): Install it.
9745
9746 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9747
9748 * gdbarch.sh (info_proc): New callback.
9749 * gdbarch.c, gdbarch.h: Regenerate.
9750
9751 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9752 before falling back to the target info_proc callback.
9753
9754 * linux-nat.c: Do not include "cli/cli-utils.h".
9755 (linux_nat_info_proc): Remove.
9756 (linux_target_install_ops): No longer install it.
9757
9758 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9759 (read_mapping): New function.
9760 (linux_info_proc): Likewise.
9761 (linux_init_abi): Install it.
9762
9763 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9764
9765 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9766 * infcmd.c: (info_proc_cmd_1): New function.
9767 (info_proc_cmd): New function, moved here from equivalent routine
9768 orignally in linux-nat.c.
9769 (info_proc_cmd_mappings): Likewise.
9770 (info_proc_cmd_stat): Likewise.
9771 (info_proc_cmd_status): Likewise.
9772 (info_proc_cmd_cwd): Likewise.
9773 (info_proc_cmd_cmdline): Likewise.
9774 (info_proc_cmd_exe): Likewise.
9775 (info_proc_cmd_all): Likewise.
9776 (_initialize_infcmd): Install "info proc" command and subcommands.
9777
9778 * target.h (struct target_ops): Add to_info_proc.
9779 (target_info_proc): Add prototype.
9780 * target.c (target_info_proc): New function.
9781
9782 * procfs.c (procfs_info_proc): Add prototype.
9783 (info_proc_cmd): Rename into ...
9784 (procfs_info_proc): ... this. Update argument types as appropriate
9785 for a to_info_proc implementation. Handle "what" argument.
9786 (procfs_target): Install procfs_info_proc.
9787 (_initialize_procfs): No longer install "info proc" command.
9788
9789 * linux-nat.c: (enum info_proc_what): Remove.
9790 (linux_nat_info_proc_cmd_1): Rename into ...
9791 (linux_nat_info_proc): ... this. Update argument types as appropriate
9792 for a to_info_proc implementation.
9793 (linux_nat_info_proc_cmd): Remove.
9794 (linux_nat_info_proc_cmd_mappings): Likewise.
9795 (linux_nat_info_proc_cmd_stat): Likewise.
9796 (linux_nat_info_proc_cmd_status): Likewise.
9797 (linux_nat_info_proc_cmd_cwd): Likewise.
9798 (linux_nat_info_proc_cmd_cmdline): Likewise.
9799 (linux_nat_info_proc_cmd_exe): Likewise.
9800 (linux_nat_info_proc_cmd_all): Likewise.
9801 (linux_target_install_ops): Install linux_nat_info_proc.
9802 (_initialize_linux_nat): No longer install "info proc" command
9803 and subcommands.
9804
9805 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9806
9807 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9808 * config.in, configure: Regenerate.
9809
9810 * target.h (struct target_ops): Add to_fileio_readlink.
9811 (target_fileio_readlink): Add prototype.
9812 * target.c (target_fileio_readlink): New function.
9813
9814 * inf-child.c: Conditionally include <sys/param.h>.
9815 (inf_child_fileio_readlink): New function.
9816 (inf_child_target): Install it.
9817
9818 * remote.c (PACKET_vFile_readlink): New enum value.
9819 (remote_hostio_readlink): New function.
9820 (init_remote_ops): Install it.
9821 (_initialize_remote): Handle vFile:readlink packet type.
9822
9823 2012-01-20 Pedro Alves <palves@redhat.com>
9824 Ulrich Weigand <ulrich.weigand@linaro.org>
9825
9826 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9827 * config.in, configure: Regenerate.
9828
9829 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9830 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9831 (target_fileio_open): Add prototype.
9832 (target_fileio_pwrite): Likewise.
9833 (target_fileio_pread): Likewise.
9834 (target_fileio_close): Likewise.
9835 (target_fileio_unlink): Likewise.
9836 (target_fileio_read_alloc): Likewise.
9837 (target_fileio_read_stralloc): Likewise.
9838
9839 * target.c: Include "gdb/fileio.h".
9840 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9841 (default_fileio_target): New function.
9842 (target_fileio_open): Likewise.
9843 (target_fileio_pwrite): Likewise.
9844 (target_fileio_pread): Likewise.
9845 (target_fileio_close): Likewise.
9846 (target_fileio_unlink): Likewise.
9847 (target_fileio_close_cleanup): Likewise.
9848 (target_fileio_read_alloc_1): Likewise.
9849 (target_fileio_read_alloc): Likewise.
9850 (target_fileio_read_stralloc): Likewise.
9851
9852 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9853 <fcntl.h>, and <unistd.h>.
9854 (inf_child_fileio_open_flags_to_host): New function.
9855 (inf_child_errno_to_fileio_error): Likewise.
9856 (inf_child_fileio_open): Likewise.
9857 (inf_child_fileio_pwrite): Likewise.
9858 (inf_child_fileio_pread): Likewise.
9859 (inf_child_fileio_close): Likewise.
9860 (inf_child_fileio_unlink): Likewise.
9861 (inf_child_target): Install to_fileio routines.
9862
9863 * remote.c (init_remote_ops): Install to_fileio routines.
9864
9865 2012-01-20 Pedro Alves <palves@redhat.com>
9866 Ulrich Weigand <ulrich.weigand@linaro.org>
9867
9868 * remote.c (remote_multi_process_p): Only check for multi-process
9869 protocol feature, do not check for extended protocol.
9870 (remote_supports_multi_process): Check for extended protocol here.
9871 (set_general_process): Likewise.
9872 (extended_remote_kill): Likewise.
9873 (remote_pid_to_str): Likewise.
9874 (remote_query_supported): Always query multiprocess mode.
9875
9876 2012-01-20 Pedro Alves <palves@redhat.com>
9877 Ulrich Weigand <ulrich.weigand@linaro.org>
9878
9879 * inferior.h (struct inferior): Add fake_pid_p.
9880 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9881 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9882 magic_null_ptid since the remote side doesn't provide a real PID.
9883
9884 2012-01-19 Tom Tromey <tromey@redhat.com>
9885
9886 * NEWS: Combine the two Python sections.
9887
9888 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * target.h (target_close): Update comment on the target's unpush state.
9891
9892 2012-01-19 Pedro Alves <palves@redhat.com>
9893
9894 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9895 linux_nat_async directly instead of going through the target
9896 vector.
9897 * target.c (unpush_target): Close target after unpushing it, not
9898 before.
9899
9900 2012-01-19 Gary Benson <gbenson@redhat.com>
9901
9902 * mdebugread.c (sort_blocks): Replace integer constants with ones
9903 derived from FIRST_LOCAL_BLOCK.
9904
9905 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9906 Jan Kratochvil <jan.kratochvil@redhat.com>
9907
9908 PR gdb/9538
9909 * symfile.c (find_separate_debug_file): New function.
9910 (terminate_after_last_dir_separator): Likewise.
9911 (find_separate_debug_file_by_debuglink): Also try realpath.
9912 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9913 * configure: Regenerate.
9914 * config.in: Regenerate.
9915
9916 2012-01-18 Doug Evans <dje@google.com>
9917
9918 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9919 (main.o): Remove rule.
9920 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9921 (--with-sysroot): Rewrite.
9922 * configure: Regenerate.
9923 * config.in: Regenerate.
9924
9925 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9926
9927 * parse.c (initialize_expout): New function.
9928 (reallocate_expout): Likewise.
9929 (parse_exp_in_context): Use `initialize_expout' and
9930 `reallocate_expout' when appropriate.
9931
9932 2012-01-18 Pedro Alves <palves@redhat.com>
9933
9934 * record.c (struct record_breakpoint, record_breakpoint_p)
9935 (record_breakpoints): New.
9936 (record_insert_breakpoint, record_remove_breakpoint): Manage
9937 record breakpoints list. Only remove breakpoints from the
9938 inferior if they had been inserted there in the first place.
9939
9940 2012-01-17 Doug Evans <dje@google.com>
9941
9942 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9943 if we know we don't have a file name to look for.
9944
9945 2012-01-17 Pedro Alves <palves@redhat.com>
9946
9947 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9948 the frame's stop reason is UNWIND_UNAVAILABLE.
9949
9950 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9951
9952 Fix compilation error.
9953 * m2-exp.y (yyerror): Use ANSI C prototype.
9954
9955 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9956
9957 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9958 (growbuf_by_size): Likewise.
9959 (yyerror): Likewise.
9960 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9961 (modblock): Remove variable (was #if 0'ed).
9962 (parse_number): Convert prototype from K&R to ANSI C.
9963 (yyerror): Likewise.
9964 * objc-exp.y (parse_number): Likewise.
9965 (yyerror): Likewise.
9966 (yylex): Remove #if 0'ed code.
9967 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9968 (yyerror): Likewise.
9969
9970 2012-01-16 Tom Tromey <tromey@redhat.com>
9971
9972 * NEWS: Add item.
9973 * symtab.h (compare_filenames_for_search): Declare.
9974 * symtab.c (compare_filenames_for_search): New function.
9975 (iterate_over_some_symtabs): Use it.
9976 * symfile.h (struct quick_symbol_functions)
9977 <map_symtabs_matching_filename>: Change spec.
9978 * psymtab.c (partial_map_symtabs_matching_filename): Use
9979 compare_filenames_for_search. Update for new spec.
9980 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9981 compare_filenames_for_search. Update for new spec.
9982 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9983
9984 2012-01-16 Tom Tromey <tromey@redhat.com>
9985
9986 PR python/13281:
9987 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9988 (struct main_type) <flag_flag_enum>: New field.
9989 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9990 * NEWS: Add entries.
9991 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9992 enums.
9993 * python/lib/gdb/printing.py (_EnumInstance): New class.
9994 (FlagEnumerationPrinter): Likewise.
9995
9996 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9997
9998 * breakpoint.c (create_sals_from_address_default): New function.
9999 (create_breakpoints_sal_default): Likewise.
10000 (decode_linespec_default): Likewise.
10001 (is_marker_spec): Removed.
10002 (strace_marker_p): New function.
10003 (init_breakpoint_sal): Using `strace_marker_p' instead of
10004 `is_marker_spec'.
10005 (create_breakpoint): Call method `create_sals_from_address' from
10006 breakpoint_ops, replacing code that created SALs conditionally
10007 on the type of the breakpoint. Call method `create_breakpoints_sal',
10008 replacing code that created breakpoints conditionally on the type
10009 wanted.
10010 (base_breakpoint_create_sals_from_address): New function.
10011 (base_breakpoint_create_breakpoints_sal): Likewise.
10012 (base_breakpoint_decode_linespec): Likewise.
10013 (base_breakpoint_ops): Add methods
10014 `base_breakpoint_create_sals_from_address',
10015 `base_breakpoint_create_breakpoints_sal' and
10016 `base_breakpoint_decode_linespec'.
10017 (bkpt_create_sals_from_address): New function.
10018 (bkpt_create_breakpoints_sal): Likewise.
10019 (bkpt_decode_linespec): Likewise.
10020 (tracepoint_create_sals_from_address): Likewise.
10021 (tracepoint_create_breakpoints_sal): Likewise.
10022 (tracepoint_decode_linespec): Likewise.
10023 (strace_marker_create_sals_from_address): Likewise.
10024 (strace_marker_create_breakpoints_sal): Likewise.
10025 (strace_marker_decode_linespec): Likewise.
10026 (strace_marker_breakpoint_ops): New variable.
10027 (addr_string_to_sals): Remove `marker_spec'. Call method
10028 `decode_linespec' from breakpoint_ops, replacing code that decoded
10029 an address string into a SAL. Use `strace_marker_p' instead of
10030 `marker_spec'.
10031 (strace_command): Decide whether we are dealing with a static
10032 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10033 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10034 * breakpoint.h (linespec_result, linespec_sals): New forward
10035 declarations.
10036 (breakpoint_ops) <create_sals_from_address>,
10037 <create_breakpoints_sal>, <decode_linespec>: New methods.
10038
10039 2012-01-14 Doug Evans <dje@google.com>
10040
10041 * NEWS: Update text for "maint set python print-stack".
10042 It is deprecated in gdb 7.4 and deleted in 7.5.
10043
10044 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10045
10046 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10047 including curses.h.
10048
10049 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 * configure: Regenerate.
10052 * config.in: Regenerate.
10053
10054 2012-01-12 Keith Seitz <keiths@redhat.com>
10055
10056 PR mi/10586
10057 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10058 (ANONYMOUS_UNION_NAME): Define.
10059 (is_path_expr_parent): New function.
10060 (get_path_expr_parent): New function.
10061 (is_anonymous_child): New function.
10062 (create_child_with_value): If the child is anonymous and without
10063 a name, assign an object name to it.
10064 (c_describe_child): Use get_path_expr_parent to determine
10065 the parent expression.
10066 If there field represents an anonymous struct or union and
10067 has no name, set an appropriate display name and expression.
10068 (cplus_describe_child): Likewise.
10069
10070 2012-01-12 Pedro Alves <palves@redhat.com>
10071
10072 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10073 available when %ebp is found to be zero (outermost).
10074
10075 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10076
10077 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10078 an internal gdb_static_assert.
10079 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10080
10081 2012-01-11 Tom Tromey <tromey@redhat.com>
10082
10083 PR gdb/9598:
10084 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10085 catch" and "catch throw".
10086
10087 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10088
10089 * blockframe.c (block_innermost_frame): Start search from selected
10090 frame, if present, or otherwise the current frame.
10091
10092 * c-exp.y (variable): Update innermost_block for
10093 'block COLONCOLON NAME' clause.
10094 * m2-exp.y (variable): Ditto.
10095 * objc-exp.y (variable): Ditto.
10096
10097 2012-01-10 Tom Tromey <tromey@redhat.com>
10098
10099 PR python/13199:
10100 * python/python.c (finish_python_initialization): Set sys.argv.
10101
10102 2012-01-10 Doug Evans <dje@google.com>
10103
10104 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10105 "want_line_info". All callers updated.
10106 (dwarf_decode_lines_1): New function.
10107 (handle_DW_AT_stmt_list): Add function comment.
10108 New arg "want_line_info". All callers updated.
10109 (read_file_scope,read_type_unit_scope): Move comment from
10110 handle_DW_AT_stmt_list to here.
10111
10112 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10113
10114 Fix regression after libiberty/ update for GCC PR 6057 and others.
10115 * c-exp.y (operator) <OPERATOR DELETE>
10116 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10117 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10118 (make_builtin_type, make_name): New variable i, add gdb_assert.
10119 (operator) <OPERATOR NEW>: Update ARGS to 3.
10120 (operator) <OPERATOR DELETE>: Add trailing space.
10121 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10122 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10123 * cp-support.c (cp_canonicalize_string): Check NULL from
10124 cp_comp_to_string, call warning and return.
10125
10126 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10127
10128 Fix duplicate .o files after omitting libbfd.a.
10129 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10130 (SFILES): Add corelow.c.
10131 (COMMON_OBS): Add corelow.o.
10132 (ALLDEPFILES): Remove corelow.c.
10133 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10134 * config/alpha/alpha-osf3.mh: Likewise.
10135 * config/alpha/fbsd.mh: Likewise.
10136 * config/arm/nbsdaout.mh: Likewise.
10137 * config/arm/nbsdelf.mh: Likewise.
10138 * config/i386/i386gnu.mh: Likewise.
10139 * config/ia64/hpux.mh: Likewise.
10140 * config/ia64/linux.mh: Likewise.
10141 * config/m32r/linux.mh: Likewise.
10142 * config/m68k/linux.mh: Likewise.
10143 * config/mips/irix5.mh: Likewise.
10144 * config/mips/irix6.mh: Likewise.
10145 * config/pa/hpux.mh: Likewise.
10146 * config/pa/linux.mh: Likewise.
10147 * config/powerpc/aix.mh: Likewise.
10148 * config/sparc/linux.mh: Likewise.
10149 * config/sparc/linux64.mh: Likewise.
10150 * config/sparc/sol2.mh: Likewise.
10151 * config/vax/vax.mh: Likewise.
10152 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10153 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10154 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10155 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10156 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10157 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10158 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10159 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10160 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10161 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10162 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10163 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10164 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10165 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10166 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10167 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10168 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10169 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10170 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10171 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10172 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10173 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10174 corelow.o from gdb_target_obs.
10175 * corefile.c (core_target): Update the comment on NULL value.
10176 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10177 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10178 MATCHES. Drop YUMMY set on NULL.
10179 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10180 reclaim CORE_DATA if it is already NULL.
10181
10182 2012-01-09 Doug Evans <dje@google.com>
10183
10184 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10185 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10186
10187 2012-01-09 Keith Seitz <keiths@redhat.com>
10188
10189 * breakpoint.c (wrapper.h): Don't include.
10190
10191 2012-01-09 Keith Seitz <keiths@redhat.com>
10192
10193 * Makefile.in (SFILES): Remove wrapper.c.
10194 (HFILES_NO_SRCDIR): Remove wrapper.h.
10195 (COMMON_OBS): Remove wrapper.o.
10196 * cli/cli-interp.c: Don't inlude wrapper.h.
10197 * corelow.c: Likewise.
10198 (core_open): Replace gdb_target_find_new_threads with
10199 TRY_CATCH around target_find_new_threads.
10200 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10201 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10202 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10203 evaluate_expression.
10204 (varobj_set_value): Likewise for evaluate_expression and
10205 value_assign.
10206 (install_new_variable): Likewise for value_fetch_lazy.
10207 (adjust_value_for_child_access): Likewise for value_ind.
10208 (c_describe_child): Likewise for value_subscript and
10209 value_ind.
10210 (c_value_of_root): Likewise for evaluate_expression.
10211 * wrapper.c: Remove.
10212 * wrapper.h: Remove.
10213
10214 2012-01-09 Doug Evans <dje@google.com>
10215
10216 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10217 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10218 "abfd" args with "section". All callers updated.
10219 Error checking code moved ...
10220 (error_check_comp_unit_head): ... here. New function.
10221 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10222 Delete arg "abfd". New arg "type_offset". All callers updated.
10223 (create_debug_types_hash_table): Simplify by using
10224 read_and_check_type_unit_head.
10225
10226 * parser-defs.h (namecopy): Delete.
10227 * parse.c (namecopy, namecopy_size): Move into copy_name.
10228
10229 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10230
10231 Partially fix duplicate .o files after omitting libbfd.a.
10232 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10233 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10234 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10235 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10236 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10237 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10238 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10239
10240 2012-01-09 Pedro Alves <palves@redhat.com>
10241
10242 * MAINTAINERS: Update my email address.
10243
10244 2012-01-08 Doug Evans <dje@google.com>
10245
10246 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10247 n_type_units. Rename type_comp_units to all_type_units.
10248 All uses updated.
10249 (add_signatured_type_cu_to_table): Renamed from
10250 add_signatured_type_cu_to_list. All callers updated.
10251
10252 * gdbtypes.h (struct cplus_struct_type): Delete member
10253 nfn_fields_total. All uses removed.
10254
10255 2012-01-06 Doug Evans <dje@google.com>
10256
10257 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10258 to top of file.
10259 (dwarf2_find_comp_unit): Delete.
10260 (process_psymtab_comp_unit): Make result "void".
10261 Delete args buffer, info_ptr, buffer_size, and replace with
10262 "section". All callers updated.
10263 (dwarf2_build_psymtabs_hard): Simplify.
10264
10265 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10266 Thiago Jung Bauermann <bauerman@br.ibm.com>
10267
10268 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10269 before `struct gdb_exception'.
10270 * breakpoint.c (update_global_location_list_nothrow)
10271 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10272 * cp-abi.c (value_rtti_type): Likewise.
10273 * cp-support.c (cp_validate_operator): Likewise.
10274 * infrun.c (insert_exception_resume_breakpoint)
10275 (check_exception_resume, keep_going): Likewise.
10276 * mi-interp.c (mi_breakpoint_created)
10277 (mi_breakpoint_modified): Likewise.
10278 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10279 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10280 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10281
10282 2012-01-05 Doug Evans <dje@google.com>
10283
10284 * dwarf2read.c (statement_prologue): Delete, unused.
10285
10286 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10287 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10288
10289 * dwarf2read.c (comp_unit_header): Delete, unused.
10290
10291 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10292
10293 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10294 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10295
10296 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10297
10298 * infrun.c (normal_stop): Don't skip calling the normal_stop
10299 observers if the thread was doing a multi-step, but stopped for
10300 some reason other than stepping.
10301
10302 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10303
10304 * cli/cli-decode.h: Add comments.
10305 (CMD_LIST_AMBIGUOUS): Moved to command.h
10306 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10307 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10308 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10309 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10310 (add_com, add_com_alias, add_info, add_info_alias)
10311 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10312 declarations.
10313 * command.h: Add and adjust comments.
10314 (CMD_LIST_AMBIGUOUS): Moved here.
10315 (help_cmd, help_cmd_list): Delete declarations.
10316
10317 2012-01-04 Doug Evans <dje@google.com>
10318
10319 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10320 All callers updated.
10321 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10322 Replace all arguments with "per_cu". All callers updated.
10323
10324 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10325
10326 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10327 New arg "per_cu". All callers updated.
10328
10329 Delete #if 0'd out code.
10330 * language.c (binop_result_type): Delete.
10331 (simple_type, ordered_type, same_type, integral_type): Delete.
10332 (numeric_type, character_type, string_type, boolean_type): Delete.
10333 (float_type, structured_type): Delete.
10334 * language.h: Update.
10335
10336 2012-01-04 Tom Tromey <tromey@redhat.com>
10337
10338 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10339
10340 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10341
10342 * corefile.c (close_exec_file): Delete.
10343 (reopen_exec_file): Remove commented out code that seems related
10344 to close_exec_file, which is being deleted here.
10345 * inferior.h (close_exec_file): Delete.
10346 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10347
10348 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10349
10350 * ada-lang.c: #include "cli/cli-utils.h".
10351 (get_selections): Use skip_spaces.
10352 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10353 (catch_ada_exception_command_split): Use skip_spaces.
10354 (ada_decode_assert_location): Likewise.
10355
10356 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10357
10358 * linespec.c (decode_line_internal): Check for C++ or Java
10359 compound constructs only if the current language is C, C++
10360 or Java.
10361
10362 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10363
10364 Revert:
10365 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10366 Joel Brobecker <brobecker@adacore.com>
10367 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10368 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10369 3 times.
10370 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10371 fall through into AT_ENTRY_POINT.
10372 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10373 DUMMY_ADDR with it.
10374 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10375 PPC_INSN_SIZE skip to 3 times.
10376
10377 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10378
10379 * linespec.c (add_minsym): Preserve function descriptors.
10380
10381 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10382
10383 * breakpoint.c (all_locations_are_pending): Consider locations
10384 in program spaces executing during startup pending as well.
10385
10386 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10387
10388 Copyright year update in most files of the GDB Project.
10389
10390 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10391
10392 * copyright.sh: Delete.
10393 * copyright.py: Rewrite.
10394
10395 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10396
10397 * gnulib/extra/update-copyright: New file, imported from gnulib.
10398
10399 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10400
10401 * README (Copyright and License Notices): New section.
10402
10403 2012-01-03 Tom Tromey <tromey@redhat.com>
10404
10405 PR python/12533:
10406 * python/py-value.c (valpy_dereference, valpy_get_address
10407 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10408 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10409 (valpy_absolute, valpy_richcompare): Free intermediate values.
10410
10411 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10412
10413 * ada-lang.c: Reformat the copyright notice.
10414
10415 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10416
10417 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10418 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10419 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10420 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10421 Revert this part of:
10422 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10423 Build gdb directly from *.o files not using libgdb.a.
10424 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10425
10426 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10427
10428 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10429 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10430 Reformat the copyright header.
10431
10432 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10433
10434 Revert this part of:
10435 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10436 Remove the gdbtui binary.
10437 * gdb.c (main): Remove args.interpreter_p initialization.
10438 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10439 * main.h (struct captured_main_args): Remove interpreter_p.
10440
10441 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10442
10443 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10444
10445 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10446
10447 * top.c (print_gdb_version): Update copyright year.
10448
10449 2012-01-02 Yao Qi <yao@codesourcery.com>
10450
10451 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10452
10453 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10454 Joel Brobecker <brobecker@adacore.com>
10455
10456 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10457 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10458 3 times.
10459 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10460 fall through into AT_ENTRY_POINT.
10461 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10462 DUMMY_ADDR with it.
10463 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10464 PPC_INSN_SIZE skip to 3 times.
10465
10466 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10467
10468 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10469 the return value.
10470 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10471
10472 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 Build gdb directly from *.o files not using libgdb.a.
10475 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10476 (COMMON_OBS): Remove solib-target.o.
10477 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10478 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10479 (LIBGDB_OBS, libgdb.a): Move it above.
10480 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10481 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10482 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10483 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10484 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10485 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10486 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10487 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10488 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10489 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10490 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10491 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10492 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10493 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10494 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10495 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10496 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10497 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10498 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10499 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10500 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10501 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10502 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10503 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10504 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10505 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10506 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10507
10508 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10509
10510 Remove the gdbtui binary.
10511 * .gitignore (/gdbtui): Remove.
10512 * Makefile.in (TUI): Remove.
10513 (SUBDIR_TUI_OBS): Remove tui-main.o.
10514 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10515 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10516 (tui-main.o): Remove.
10517 (all_object_files): Remove tui-main.o.
10518 * NEWS: New note for the gdbtui removal.
10519 * configure: Rebuilt.
10520 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10521 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10522 CONFIG_UNINSTALL respectively.
10523 * gdb.c (main): Remove args.interpreter_p initialization.
10524 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10525 * main.h (struct captured_main_args): Remove interpreter_p.
10526 * tui/tui-main.c: Remove.
10527
10528 2012-01-01 Doug Evans <dje@google.com>
10529
10530 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10531 (dwarf2_physname, read_import_statement): Ditto.
10532 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10533 (process_structure_scope read_subroutine_type): Ditto.
10534 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10535 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10536 (dwarf2_fetch_die_location_block): Ditto.
10537 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10538
10539 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10540 All callers updated.
10541 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10542 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10543 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10544
10545 * dwarf2read.c (load_cu): Move assert to more useful location.
10546
10547 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10548 All callers updated.
10549
10550 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10551 (dwarf2_elf_names): Minor reformat.
10552 (dwarf2_per_cu_data): Tweak comment.
10553 (dwarf2_read_section): Fix comment.
10554 (create_all_comp_units): Fix comment.
10555 (load_full_comp_unit): Fix comment.
10556 (process_full_comp_unit): Fix comment.
10557 (read_signatured_type): Fix comment.
10558
10559 For older changes see ChangeLog-2011.
10560 \f
10561 Local Variables:
10562 mode: change-log
10563 left-margin: 8
10564 fill-column: 74
10565 version-control: never
10566 coding: utf-8
10567 End:
This page took 0.260374 seconds and 4 git commands to generate.