* ld-cris/expdref3.s, ld-cris/expdref4.s, ld-cris/weakref3.d,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aefc7064
PA
12009-01-18 Pedro Alves <pedro@codesourcery.com>
2
3 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
4 at a time, times NUM_TO_SCROLL.
5 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
6 fetch the selected frame if there is no stack.
7
29f49a6a
PA
82009-01-18 Pedro Alves <pedro@codesourcery.com>
9
10 PR gdb/9747:
11 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
12 Declare.
13 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
14 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
15 is thrown while handling an event, finish the thread state.
16 (normal_stop): Use finish_thread_state cleanup.
17 * infcmd.c (run_command_1): If an error is thrown while starting
18 the inferior, finish the thread state.
19
e7243d73
PA
202009-01-18 Pedro Alves <pedro@codesourcery.com>
21
22 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
23 skip breakpoints without a location (pending breakpoints).
24
e74994b5
PA
252009-01-18 Pedro Alves <pedro@codesourcery.com>
26
27 PR build/9186:
28 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
29
8405c36e
NR
302009-01-18 Nick Roberts <nickrob@snap.net.nz>
31
32 * thread.c (thread_command): Move call to annotate_thread_changed
33 to...
34 (do_captured_thread_select): ... here, to avoid printing an
35 annotation if the thread change generates an exception.
36
b8bfd3ed
JB
372009-01-16 Joel Brobecker <brobecker@adacore.com>
38
39 * NEWS: Document x86_64/MinGW as a new native configuration.
40
2dde91e9
JB
412009-01-16 Joel Brobecker <brobecker@adacore.com>
42
43 * NEWS: Move the documentation of "info os processes" to
44 the appropriate section (documenting the new commands).
45
54363045
DE
462009-01-15 Doug Evans <dje@google.com>
47
48 * target.h (target_signal_to_string): Make return type const char *.
49 (target_signal_to_name): Ditto.
50 (target_signal_from_name): Make arg const char *.
54363045 51 * infrun.c (sig_print_info): Update.
54363045
DE
52 * signals/signals.c (signals): Make array and struct members const.
53 (target_signal_to_string): Make return type const char *.
54 (target_signal_to_name): Ditto.
55 (target_signal_from_name): Make arg const char *.
56
572d275c
UW
572009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
58 Tristan Gingold <gingold@adacore.com>
59
60 * solist.h (struct target_so_ops): New member bfd_open.
61 (solib_find): Add prototype.
62 (solib_bfd_fopen): Add prototype.
63 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
64 from solib_bfd_open.
65 (solib_bfd_open): Use ops->bfd_open override if present. Call
66 solib_find and solib_bfd_open otherwise.
67
68 * objfiles.h (OBJF_KEEPBFD): New define.
69 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
70 objfile flag is set.
71 * solib.c (symbol_add_stub): Do not allocate second BFD for
72 shared library; use OBJF_KEEPBFD flag on solib objfile.
73
0701b271
UW
742009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
75
76 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
77
61212c0f
UW
782009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
79
80 * value.h (address_of_variable): Add prototype.
81 (locate_var_value): Remove prototype.
82
83 * findvar.c (read_var_value): Do not attempt to default frame
84 to selected frame.
85 (locate_var_value): Remove function.
86 * valops.c (value_of_variable): Retrieve selected frame for
87 symbols that require a frame when called with NULL block.
88 * valops.c (address_of_variable): New function.
89
90 * eval.c (evaluate_subexp_for_address): Call address_of_variable
91 instead of calling locate_var_value.
92 (evaluate_subexp_with_coercion): Likewise.
93
adb483fe
DJ
942009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
95
96 * NEWS: Document "define" for prefixed commands.
97 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
98 show_user_1 for prefix commands.
99 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
100 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
101 commands. Return the containing command list.
102 (define_command, document_command): Update to handle prefix commands.
103 (show_user_1): Add prefix and name arguments. Handle prefix
104 commands.
105 * cli/cli-script.h (show_user_1): Update prototype.
106
a32d7317
KT
1072009-01-14 Kai Tietz <kai.tietz@onevision.com>
108
109 * mingw-ser.c (console_select_thread): Add return to make
110 compiler happy.
111 (pipe_select_thread): Likewise.
112 (file_select_thread): Likewise.
113
041d0fd7
PA
1142009-01-14 Pedro Alves <pedro@codesourcery.com>
115
116 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
117 previous change.
118
dc1981d7
PA
1192009-01-14 Pedro Alves <pedro@codesourcery.com>
120
121 * remote.c (extended_remote_mourn_1): Invalidate our notion of
122 current general thread.
123
244bf9ae
PA
1242009-01-14 Pedro Alves <pedro@codesourcery.com>
125
126 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
127 without a live selected thread.
128
e4d013fc
JB
1292009-01-14 Joel Brobecker <brobecker@adacore.com>
130
131 Update the copyright notice of some of the files I missed
132 in the previous copyright update.
133
a588db63
JB
1342009-01-14 Joel Brobecker <brobecker@adacore.com>
135
136 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
137 base address instead of casting it to DWORD.
138
77a732d9
UW
1392009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
140
141 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
142 for NULL frame pointers.
143
773698b5
JB
1442009-01-13 Mark Kettenis <kettenis@gnu.org>
145
146 * utils.c (host_address_to_string): Reimplement in a way that
147 avoids the cast of the address to long.
148
9918cab9
JB
1492009-01-13 Joel Brobecker <brobecker@adacore.com>
150
151 * mdebugread.c (parse_symbol): Save the symbol private data
152 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
153 (psymtab_to_symtab_1): Likewise.
154 (parse_procedure): Declare variable "e" only in the scope
155 where it is used. Extract the symbol private data using
156 SYMBOL_VALUE_BYTES.
157
74bcbdf3
PA
1582009-01-13 Jim Blandy <jimb@codesourcery.com>
159
160 Abstract out common code for copying value locations.
161
162 * value.h (set_value_component_location): New declaration.
163 * value.c (set_value_component_location): New function.
164 (value_primitive_field): Use it.
165 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
166 * valops.c (search_struct_field, value_slice): Same.
167 * ada-lang.c (coerce_unspec_val_to_type)
168 (ada_value_primitive_packed_val): Same.
169
d7dc3873
JB
1702009-01-13 Joel Brobecker <brobecker@adacore.com>
171
172 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
173
dc05df57
CF
1742009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
175
176 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
177 throughout.
178 * i386-cygwin-tdep.c: Ditto.
179 * i386-windows-nat.c: Ditto.
180 * windows-nat.h: Ditto.
181 * windows-tdep.c: Ditto.
182 * windows-tdep.h: Ditto.
183 * windows-nat.c: Ditto.
184 (cygwin_load_start): Redefine as CORE_ADDR.
185 (cygwin_load_end): Ditto.
186 (windows_make_so): Coerce result of address arithmetic to to uintptr_t
187 before coercing to CORE_ADDR to avoid a compiler warning.
188 (handle_exception): Define addr as CORE_ADDR and coerce
189 ExceptionAddress to uintptr_t before assigining to avoid a compiler
190 warning.
191 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
192 files.
193
31b060a2
CF
1942009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 Fix linking with --enable-targets=all:
197 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
198 (HFILES_NO_SRCDIR): Add windows-tdep.h.
199 (ALLDEPFILES): Add windows-tdep.c.
200
2012009-01-11 Christ Faylor <me.gdb@cgf.cx>
202
203 * win32-nat.h: Delete.
204 * windows-nat.h: Rename from win32-nat.h.
205 * win32-nat.c: Delete.
206 * windows-nat.c: Rename from win32-nat.c.
207 * win32-termcap.c: Delete.
208 * windows-termcap.c: Rename from win32-termcap.c.
209 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
210 * configure.ac: Handle rename from win32-termcap.c ->
211 windows-termcap.c.
212 * configure: Regenerate.
213 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
214 -> windows-termcap.c.
215 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
216 windows-tdep.h.
217 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
218 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
219 windows-tdep.h.
220 (win32_make_so): Handle cygwin compiler warning due to change of
221 load_addr from DWORD to LPVOID.
222 (handle_load_dll): Use %p in format string to properly print address
223 and avoid a compiler warning.
224 (DEBUG_EXCEPTION_SIMPLE): Ditto.
225 (handle_exception): Ditto.
226 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
227 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
228 windows-nat.o.
229 * config/i386/mingw.mh: Ditto.
230 * config/i386/mingw64.mh: Ditto.
231
0311118f
JK
2322009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
233
234 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
235 arrayprint_recurse_level to a parameter. Update all the callers. New
236 comment at autovariables.
237
5f61c20e
JK
2382009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
239
240 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
241 coding style.
242
2432009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
244
245 * target.c (target_xfer_partial): Use host_address_to_string to
246 print the address of readbuf and writebuf. Cast the address of
247 elements inside the myaddr buffer into intptr_t.
248 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
249 Cast the address of elements inside the myaddr buffer into
250 intptr_t.
251
5f61c20e 2522009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
253
254 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
255 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
256 * configure.host, configure.tgt: Add handling for x86_64/windows.
257 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
258 and amd64-windows-tdep.c.
259
5f61c20e 2602009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
261
262 * win32-tdep.h, win32-tdep.c: New files.
263 * i386-cygwin-tdep.h: Delete.
264 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
265 i386-cygwin-tdep.h.
266 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
267 * win32-nat.c: Likewise.
268 * configure.tgt: Add win32-tdep.o to the list of target object
269 files for i386-cygwin and i386-mingw targets.
270
5f61c20e 2712009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
272
273 * win32-nat.h: New file.
274 * win32-nat.c (mappings): Initialize to NULL.
275 (win32_set_context_register_offsets): New function.
276 * i386-windows-nat.c: New file.
277 (mappings): Moved here from win32-nat.c.
278 (_initialize_i386_windows_nat): New function.
279 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
280 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
281
25fc6591
AS
2822009-01-09 Andreas Schwab <schwab@suse.de>
283
284 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
285
87f70781
PA
2862009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
287
288 * gdbtypes.c (append_composite_type_field): Correct the location of
289 appended fields.
290
58d4abe1
PA
2912009-01-09 Pedro Alves <pedro@codesourcery.com>
292
293 * defs.h (deprecated_error_hook): Delete declaration.
294 * interps.c (clear_interpreter_hooks): Adjust.
295 * remote-sim.c (gdb_os_error): Don't try to call
296 deprecated_error_hook. No need to call exit anymore.
297 * top.c (deprecated_error_hook): Delete.
298
e3cb3832
JB
2992009-01-09 Joel Brobecker <brobecker@adacore.com>
300
301 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
302 to print the address of the gdbarch pointer.
303
30737ed9
JB
3042009-01-09 Joel Brobecker <brobecker@adacore.com>
305
306 * gdbarch.sh: Fix all the compilation errors on amd64-windows
307 due to casting a pointer to a long when printing a function
308 address. Instead, use host_address_to_string to convert our
309 address to a string.
310 * gdbarch.c: Regenerate.
311
ec4dfccf
JB
3122009-01-09 Joel Brobecker <brobecker@adacore.com>
313
314 * event-top.c (async_disconnect, async_stop_sig): use "raise"
315 instead of "kill" to raise a signal.
316
d3653bf6
JB
3172009-01-09 Joel Brobecker <brobecker@adacore.com>
318
319 * win32-nat.c (get_module_name): Change the type of parameter
320 "base_address" to LPVOID. Remove unnecessary cast.
321 (struct lm_info): Change type of load_addr to LPVOID.
322 (win32_make_so): Change the type of parameter "load_addr"
323 to LPVOID. Remove some unnecessary casts.
324 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
325 (win32_xfer_shared_libraries): Add missing cast.
326
308a8808
JB
3272009-01-09 Joel Brobecker <brobecker@adacore.com>
328
329 * win32-nat.c (has_detach_ability, set_process_privilege):
330 Cast the result of GetProcAddress to (void *) to avoid
331 a compilation warning.
332
5851ab76
JB
3332009-01-09 Joel Brobecker <brobecker@adacore.com>
334
335 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
336 already defined.
337
5732a500
JB
3382009-01-09 Joel Brobecker <brobecker@adacore.com>
339
340 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
341 definition of local variable "done".
342 (info_w32_command, handle_exception): Remove unnecessary cast.
343
def4de3a
JB
3442009-01-09 Joel Brobecker <brobecker@adacore.com>
345
346 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
347 DebugSetProcessKillOnExit. Update all uses in this file.
348 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
349 Update all uses in this file.
350
3512009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
352
353 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
354 and use it when pushing the target.
355 (win32_attach, win32_create_inferior): Update call to
356 do_initial_win32_stuff.
357 (win32_detach, win32_mourn_inferior): Use our ops parameter
358 instead of the global win32_ops to unpush the target.
359
1be7fe8d
JB
3602009-01-09 Joel Brobecker <brobecker@adacore.com>
361
362 * ser-mingw.c (ser_windows_open): Use proper type when casting
363 in call to _open_osfhandle.
364
1dac1b47
KT
3652009-01-09 Kai Tietz <kai.tietz@onevision.com>
366
367 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
368
ecf180db
JB
3692009-01-09 Joel Brobecker <brobecker@adacore.com>
370
371 * CONTRIBUTE: Minor reformatting.
372
8234eceb
KT
3732009-01-08 Kai Tietz <kai.tietz@onevision.com>
374
375 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
376 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
377 export directory.
8234eceb 378
72ee8797
NF
3792009-01-08 Nathan Froyd <froydnj@codesourcery.com>
380
381 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
382 Call exit to make it obvious to GCC.
383
f7545552
TT
3842009-01-08 Tom Tromey <tromey@redhat.com>
385
386 PR breakpoints/9350:
387 * varobj.c (varobj_invalidate): Unconditionally free
388 all_rootvarobj.
389 * symfile.c (syms_from_objfile): Free local_addr when returning
390 normally.
391 * exec.c (exec_file_attach): Do cleanups before returning.
392 (exec_file_command): Likewise.
393 * corefile.c (reopen_exec_file): Do cleanups before returning.
394 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
395 returning.
396 (do_vec_free): New function.
397 (update_global_location_list): Make a cleanup for old_locations.
398 Do cleanups before returning. Remove unused variable 'e'.
399 (find_condition_and_thread): Free result of parsing the
400 expression.
401 (print_it_typical): Do cleanups before returning.
402 (breakpoint_re_set_one): Always free sals.sals.
403
dde02812
ES
4042009-01-08 Joel Brobecker <brobecker@adacore.com>
405 Emi Suzuki <emi-suzuki@tjsys.co.jp>
406
407 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
408 watchpoints.
409
69bcc6bc
DE
4102009-01-07 Doug Evans <dje@google.com>
411
412 * top.c (gdb_prompt_string): Delete, unused.
413
fa3a767f
PA
4142009-01-07 Pedro Alves <pedro@codesourcery.com>
415
416 Delete ONE_PROCESS_WRITETEXT leftovers.
417
418 * breakpoint.c (insert_bp_location): Delete process_warning
419 argument. Adjust.
420 (insert_breakpoint_locations): Adjust.
421 (reattach_breakpoints): Adjust.
422 * infrun.c (normal_stop): Drop "It might be running in another
423 process" notice.
424
7b93f36d
SS
4252009-01-07 Stan Shebs <stan@codesourcery.com>
426
427 * config/pa/linux.mh (XDEPFILES): Remove.
428
0380c18b
DE
4292009-01-07 Doug Evans <dje@google.com>
430
431 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
432
60023297
JK
4332009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
436 spacing, a regression from 2008-04-22.
437
ea8992ce
JB
4382009-01-07 Joel Brobecker <brobecker@adacore.com>
439
440 * utils.c (gdb_print_host_address): Adjust implementation to
441 reuse host_address_to_string. Move comment explaining the conversion
442 from host address to string from here...
443 (host_address_to_string): ... to there.
444
301d2c47
ES
4452009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
446
447 * MAINTAINERS: Add myself for write after approval privileges.
448
170ce852
TT
4492009-01-06 Tom Tromey <tromey@redhat.com>
450
451 * value.c (set_internalvar): Use value_free, not xfree.
452
fdb7262a
JB
4532009-01-06 Jim Blandy <jimb@red-bean.com>
454
bf1d7d9c
JB
455 Check return values of functions declared with warn_unused_result
456 attribute in GLIBC 2.8.
457 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
458 * inflow.c (check_syscall): New function.
459 (new_tty): Use check_syscall to check return values from open and dup.
460 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
461 * main.c (captured_main): Call cwd after setting up gdb_stderr;
462 check for errors from getcwd.
463 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
464 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
465 (stdio_file_fputs): Same.
466 * utils.c (internal_vproblem): abort if last-ditch error message
467 write fails.
468
fdb7262a
JB
469 * top.c (gdb_init): Don't set the current directory here; that's
470 already been done in captured_main.
471
84603566
SL
4722009-01-06 Sandra Loosemore <sandra@codesourcery.com>
473
474 * ser-tcp.c: Adjust includes.
475 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
476 (tcp_auto_retry, tcp_retry_limit): Declare.
477 (TIMEOUT): Remove, in favor of tcp_retry_limit.
478 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
479 (wait_for_connect): New function.
480 (net_open): Use it. Add auto-retry logic.
481 (set_tcp_cmd, show_tcp_cmd): New functions.
482 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
483 and "set/show tcp connect-timeout" commands.
484 * NEWS: Document new commands.
485
5171e6b3
TT
4862009-01-05 Tom Tromey <tromey@redhat.com>
487
488 * python/python-internal.h (Py_ssize_t): Define as int.
489
a367a1f2
JB
4902009-01-05 Jim Blandy <jimb@red-bean.com>
491
492 * MAINTAINERS: Fix my e-mail address as steering committee member.
493
0fb0cc75
JB
4942009-01-03 Joel Brobecker <brobecker@adacore.com>
495
496 Updated copyright notices for most files.
497
c9fc347d
JB
4982009-01-03 Joel Brobecker <brobecker@adacore.com>
499
500 * top.c (print_gdb_version): Update copyright year.
501
a85d99b4
JB
5022009-01-03 Joel Brobecker <brobecker@adacore.com>
503
504 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
505
4d78a120
JB
5062009-01-01 Pedro Alves <pedro@codesourcery.com>
507
508 PR breakpoints/9681:
509 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
510 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
511 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
512 retrow all other exceptions.
513
67de2a4c 514For older changes see ChangeLog-2008.
c906108c
SS
515\f
516Local Variables:
517mode: change-log
518left-margin: 8
519fill-column: 74
520version-control: never
57da7796 521coding: utf-8
c906108c 522End:
This page took 1.028154 seconds and 4 git commands to generate.