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